Re: [xsl] sorting based on variable and limit the results

Subject: Re: [xsl] sorting based on variable and limit the results
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Wed, 25 Mar 2009 15:38:56 +0100
David Carlisle schrieb:
<xsl:key name="p" match="p" use="pp"/>
....


<xsl:for-each select="//s"> <xsl:sort select="count(key('p',n))"/>

For counts exceeding 9, make sure the value is treated as a number:


<xsl:sort select="count(key('p',n))" data-type="number"/>

Michael Ludwig

Current Thread