[xsl] Filling gaps in a list of values

Subject: [xsl] Filling gaps in a list of values
From: "Ben Hesketh" <jbgh2@xxxxxxxxxxx>
Date: Tue, 22 Jan 2002 12:58:47 +0000
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



Current Thread