Subject: Re: [xsl] [XSLT Streaming] Are xsl:for-each and xsl:iterate equivalent? From: "Sean B. Durkin" <sean@xxxxxxxxxxxxxxxxx> Date: Fri, 30 Aug 2013 02:23:37 +1000 |
One other difference: xsl:for-each can leverage xsl:sort. xsl:iterate can not.
Faithfully, Sean B. Durkin
To my way of thinking, streaming means that we start at the top and sequentially make our way through the document (or break out if desired). Given that, it seems like when doing streaming Best Practice is to use xsl:iterate and not use xsl:for-each. Do you agree?If there are no parameters passed from one iteration of the loop to the next, and if there is no break-out, then the two constructs are semantically equivalent and there is no strong reason to prefer one over the other.
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] [XSLT Streaming] Are xsl:, Michael Kay | Thread | [xsl] [ANN] Hands-on classes in XML, Tommie Usdin |
Re: [xsl] How to QuickSort a map?, Michael Kay | Date | [xsl] [XSLT Streaming] My code visi, Costello, Roger L. |
Month |