[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: numbering sorted list

Subject: Re: numbering sorted list
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 3 May 2000 17:20:13 +0100 (BST)
sorted list
> how could I look at the next item in the sorted list?

with difficulty (but its not impossible) using standard XSLT
but if your processor (eg xt, saxon, msxsl, xalan) offers
a node-set() extension function to convert from a result tree frafment
to a node-set (or in the case of msxsl, just implicit coercion)
then you can first sort your list
<xsl:variable name="x">
 <xsl:for-each select="....">
  <xsl:sort ...
...
</xsl:variable>

then process your sorted list
<xsl:for-each select="xt:node-set($x)/*">
....
now position() gives the sorted order, and following-sibling::*[1]
gives the next node after sorting.
</xsl:for-each>


David


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.