[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] sorting based on variable and limit the results
Subject: [xsl] sorting based on variable and limit the results From: Michalmas <michalmas@xxxxxxxxx> Date: Mon, 23 Mar 2009 00:17:25 +0100 |
Hi guys, is it possible to sort based on xsl:variable? If so, how? For example, i have such piece of code: <xsl:for-each select="//s"> <xsl:variable name="name" select="n" /> <xsl:variable name="quantity" select="count(//p/pp[(.) = $name])" /> <tr> <td><xsl:value-of select="n"/></td> <td><xsl:value-of select="$quantity"/></td> </tr> </xsl:for-each> and i want to sort on $quantity (simple xsl:sort is not compilable). And the second part of question - is it possible to limit the result to the top 10, without intermediate representation (or, just in one XSLT script). Thanks!
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT and XInclude?, Michael Kay | Thread | Re: [xsl] sorting based on variable, David Carlisle |
[xsl] XSLT and XInclude?, Dan Vint | Date | Re: [xsl] sorting based on variable, David Carlisle |
Month |
Keywords