[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Can code in XSLT 3 check whether it is dealing wit

Subject: Re: Can code in XSLT 3 check whether it is dealing with a streamed or a grounded node?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 12 Sep 2020 15:20:01 -0000
Re:  Can code in XSLT 3 check whether it is dealing wit
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.honnen@xxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 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?

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.