xsl-list
[Top] [All Lists]

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

2014-02-10 04:36:40
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>
--~--


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