|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Sort By calclulated variable
<xsl:template name="positionfilter"> <xsl:param name="sortedlist"/> <xsl:param name="totale"/> <xsl:for-each select="msxsl:node-set($sortedlist)/*"> <xsl:sort select="$totale"/> You've posted dozens of versions of your question but never really said what transform you are trying to do, please read the list guidelines on how to construct a question so that people can help. I don't know what you are trying to do so I can't suggest alternative code, but it is clear that the above code will not sort the list. $totale is a parameter passed in to the template so it has a fixed value (which may be different each time the template is called, but doesn't change within a given execution of the template) so you are sorting on a constant value that does not depend on any item in the list that is being sorted. In this situation that xslt spec guarantees that the sort is stable and the original node set order will be used. David
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







