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

Filling gaps in a list of values

Subject: Filling gaps in a list of values
From: "Ben Hesketh" <jbgh2@xxxxxxxxxxx>
Date: Tue, 22 Jan 2002 12:58:47 +0000
gaps list

I'm trying to sort a set of nodes in descending order and output them with any gaps filled in.


<node order="1" name="fred"/>
<node order="4" name="bob"/>

will produce

order 4: bob
order 3: no name
order 2: no name
order 1: fred

I've tried using <xsl:for-each> but I can't seem to get hold of the next node to be processed to check it! I've also tried using <xsl:apply-templates select="node[@order]"> but the template is called once for every node.

Cheers in advance,


_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com

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

Current Thread


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.
First Name
Last Name
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.