Subject: XSLT streaming: is a "striding" construct dependent or independent of the XML that the construct is applied to?
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Mon, 10 Feb 2014 10:36:19 +0000
|
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
|