xsl-list
[Top] [All Lists]

Re: [xsl] [XSLT Streaming] Are xsl:for-each and xsl:iterate equivalent?

2013-08-29 08:23:08
On 29/08/2013 14:10, Costello, Roger L. wrote:
I realize that xsl:iterate has some capabilities that xsl:for-each
doesn't have, such as the ability to break out of the loop before
processing the entire sequence.

But leaving that aside, they are both ways of looping over a
sequence of items, right?

It's best not to think of for-each in those terms (even though it can be
streamed if the select attribute xpath is streamable) as in general it
gives no guarantee on execution order at all (which is why it wouldn't
make sense to "break out" of the loop). It is best to think of it as
being a parallel region in which all the selected items are processed
(even if a given, or all, implementations actually process the items one
at a time)

David


--
google plus: https:/profiles.google.com/d.p.carlisle


--~------------------------------------------------------------------
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>
--~--