[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] N input nodes to specific number of ouput nodes


Subject: [xsl] N input nodes to specific number of ouput nodes
From: "Bordeman, Chris" <Chris.Bordeman@xxxxxxxxxxxxxxxxx>
Date: Wed, 22 Oct 2008 10:39:16 -0500

Hi all.

I need to loop through some nodes and output exactly 10 output nodes, no
matter how many input nodes there are.  If too few input nodes the ouput
will just show "N/A" and if too many input nodes they will just be
ignored.

I can do the 'too many' with a for-each and a choose based on position()
but don't get how the 'too few' scenario is handled.

Please help.  Thanks!


Current Thread