xsl-list
[Top] [All Lists]

Re: xsl:number useless with xsl:sort?

2002-11-04 03:40:18

i use xsl:sort to sort the output. now i need something like xsl:number to
give the elements numbers from 1-n, but i need the sorted one to be
numbered.

If you just need simple numbering, and not any of the fancier features
of xsl:number, use xsl:value-of select="position()"/>

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>