Subject: Re: [xsl] Sort By calclulated variable From: David Carlisle <davidc@xxxxxxxxx> Date: Sun, 3 Sep 2006 21:56:13 +0100 |
<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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Sort By calclulated variable, Giancarlo Rossi | Thread | [xsl] Petri net to BPEL model trans, stgn |
Re: [xsl] Confirmimg - Bug in Acces, Dimitre Novatchev | Date | Re: [xsl] Confirmimg - Bug in Acces, Karl Stubsjoen |
Month |