Project

Profile

Help

Does the API of Saxon 9.8 allow to start processing with a streamable stylesheet function using a streamable input as the first argument?

Added by Martin Honnen over 7 years ago

https://www.w3.org/TR/xslt-30/#invoking-initial-function says

If the initial function is declared-streamable, a streaming processor should allow the value of the first argument to be supplied in streamable form, and if it is supplied in this form, then it must be processed using streaming.

When I look at Saxon's API documentation I find http://saxonica.com/html/documentation/javadoc/net/sf/saxon/s9api/Xslt30Transformer.html#callFunction-net.sf.saxon.s9api.QName-net.sf.saxon.s9api.XdmValue:A- with a signature


public XdmValue callFunction(QName function,
                             XdmValue[] arguments)

and http://saxonica.com/html/documentation/javadoc/net/sf/saxon/s9api/Xslt30Transformer.html#callFunction-net.sf.saxon.s9api.QName-net.sf.saxon.s9api.XdmValue:A-net.sf.saxon.s9api.Destination- with a signature


public void callFunction(QName function,
                         XdmValue[] arguments,
                         Destination destination)

Is there any way exposed by the API to call a streamable stylesheet function so that streaming is used with the first argument supplied in streamable form (@Source@?)?


Replies (1)

RE: Does the API of Saxon 9.8 allow to start processing with a streamable stylesheet function using a streamable input as the first argument? - Added by Michael Kay over 7 years ago

I think the answer is that it can probably be done by dropping down deeply into Saxon's innards, but there isn't an API for this that was designed explicitly for external use.

    (1-1/1)

    Please register to reply