This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Jumping out a loop AND Starting loop at another node
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl]Jumping out a loop AND Starting loop at another node
- From: David_Marston at lotus dot com
- Date: Fri, 20 Apr 2001 17:10:42 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
Patrick, thanks for agreeing with me 95%. :)
>http://www.w3.org/TR/xslt11/#for-each clearly states that the nodes
>are PROCESSED in document order. Not just outputed in document order.
But the only "net effect" of that order that you can depend on is the
order of the outputs. While processing any given source node in the
so-called loop, you can't depend on any other nodes "already having
been processed" in any temporal sense. What you can do, as was given
to Tanz in some answers, is refer to position() in a way that
parallel threads could each independently calculate. The parallel
threads need not synchronize, as long as they give the appearance of
processing the nodes in document (or sorted) order. The way they
"give the appearance" is by the order of their outputs.
.................David Marston
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list