This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Jumping out a loop AND Starting loop at another node



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]