<xsl:for-each select="Number">
<xsl:value-of select="sum((., preceding-sibling::Number))" />
</xsl:for-each>
Can this code be executed in any order?
Yes, for example:
<Number>1</Number>
<Number>2</Number>
<Number>3</Number>
Imagine the processor uses 1 thread per item to be processed, so three
threads in this example. Each thread goes off, does its thing
independently of the other threads, and stores the result. The
processor then takes the result of each thread, and adds it to the
result tree in document order.
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
--~------------------------------------------------------------------
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>
--~--