This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to Reorder Items & Number Them Sequentially?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: How to Reorder Items & Number Them Sequentially?
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 22 May 2000 17:34:21 +0100
- Reply-To: xsl-list at mulberrytech dot com
Sorting and then numbering can sometimes be achieved using the position()
function, which gives the position of each node in its sorted order
(<xsl:number> gives its position in the source tree).
Alternatively perform two passes, one to do sorting and the other to do
numbering. You can either do this by chaining two stylesheets, or by using
the node-set() extension available in Saxon and xt.
Mike Kay
> What I'd like to know is: how I can create this ordering of the
> output and retain the ability to number the items sequentially using
> XSLT?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list