[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: 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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member