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]
Other format: [Raw text]

Filling gaps in a list of values


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


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