xsl-list
[Top] [All Lists]

Re: [xsl] XSLT streaming: is a "striding" construct dependent or independent of the XML that the construct is applied to?

2014-02-10 13:18:28
The posture of an expression is a static property of the expression; it's based 
on analysis that's done independently of the data. So it's the fact that 
sections could be nested that matters, regardless whether they actually are.

The streamability rules in the spec don't take any account of schema knowledge, 
but a schema-aware processor is free to do smarter analysis if it wants to.

Michael Kay
Saxonica

On 10 Feb 2014, at 10:36, Costello, Roger L. <costello(_at_)mitre(_dot_)org> 
wrote:

Hi Folks,

Is a "striding" construct dependent on the XML that the construct is applied 
to?

Please allow me to explain.

Consider this XML:

<Document>
   <section>
       <title>A</title>
       <section>
           <title>B</title>
       </section>
   </section>
</Document>

This expression:

      //section

yields a sequence in which the items are not disjoint. Hence //section is not 
a striding construct, for this XML.

But now consider this XML:

<Document>
   <section>
       <title>A</title>
   </section>
   <section>
       <title>B</title>
   </section>
</Document>

Applying the same construct:

      //section

yields a sequence in which the items are disjoint. Hence //section is a 
striding construct, for this XML.

So whether an expression is striding or not depends on the particular XML 
that it is applied to. Is that correct?

Or, is //section not striding, regardless of the XML it is applied to?

/Roger

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>