Subject: Re: [xsl] To simulate SORT inside a xsl:choose condition From: Greg Faron <gfaron@xxxxxxxxxxxxxxxxxx> Date: Mon, 29 Apr 2002 16:38:42 -0600 |
Hi all ,
I know that the rule to sort should be immediately after <xsl:for-each >
I am in a situation where i have to read the criteria to sort from some some node in the beginning of XML
and based on which i need to make a decision to sortBY corresponding node somewhere down the line....
But as you know the following way doesnt work ...
<xsl:for-each select="somenode"> <xsl:choose> <xsl;when test="$prevnode = 'criteriavalue' "> <xsl:sort order="ascending" select="node_to_be_sorted"/> </xsl:when> </xsl:choose>
</xsl:for-each>
Note: dont worry about syntax check on this ...
Is there a way to sneak around and get this Sorting to work based on some criteria ...Or any other work arounds, suggestions?
Greg Faron Integre Technical Publishing Co.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] To simulate SORT inside a xsl, KUMAR NINGASHETTY | Thread | RE: [xsl] To simulate SORT inside a, Michael Kay |
Re: [xsl] javascript in XSLT, Greg Faron | Date | Re: [xsl] To simulate SORT inside a, Joerg Heinicke |
Month |