xsl-list
[Top] [All Lists]

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

2009-03-25 10:39:31
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--