Subject: Re: [xsl] Comparing and re-assigning variables.|
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Mon, 24 Feb 2003 14:22:09 +0000
Have you considered a two-pass approach, reading and sorting your information in the first step into an intermediate result tree and then chaining to a second step that can address your information in the new already-sorted intermediate as a source node tree?
A computationally intensive one-pass approach that may be a candidate for you if the sorted collection is small is to revisit the sorted node list repeatedly for each member of the sorted node list in order to extract into result tree fragment variables indexed members based on their position relative to the position of the current node in the sorted list. This is not typically advised though because of the many many loops through the source information.
I hope this helps.
<xsl:variable name="SorterList"> <xsl:for-each select="report-root/txns"> <xsl:sort select="cpmBI"/> <xsl:sort select="date"/> </xsl:variable>