This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Filling gaps in a list of values
- From: "Ben Hesketh" <jbgh2 at hotmail dot com>
- To: XSL-List at lists dot mulberrytech dot com
- Date: Tue, 22 Jan 2002 12:58:47 +0000
- Subject: [xsl] Filling gaps in a list of values
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
I'm trying to sort a set of nodes in descending order and output them with
any gaps filled in.
ie
<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,
BEN
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list