This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to Reorder Items & Number Them Sequentially?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]