Re: [xsl] xsl:number useless with xsl:sort?

Subject: Re: [xsl] xsl:number useless with xsl:sort?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 4 Nov 2002 10:40:18 GMT
> 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


Current Thread