Good question, and I suspect the answer is no.
If you "try/catch" something that would fail on a streamed node, the chances
are you'll get a static error saying the code isn't streamable.
Michael Kay
Saxonica
On 12 Sep 2020, at 10:01, Martin Honnen martin(_dot_)honnen(_at_)gmx(_dot_)de
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
I wonder whether, in XSLT 3 with (the option of) streaming, a function
or template can check/introspect if it is dealing with a streamed node
or a grounded node.
For instance, depending on how an XSLT stylesheet is executed the
initial match selection might be streamed (e.g. StreamSource in
Java/Saxon API) or grounded (XdmNode in Java/Saxon API), can the
stylesheet code check whether it is dealing with a streamed or with a
grounded node?
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--