[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Grouping Based on the Number of Preceding Siblings
Subject: [xsl] Grouping Based on the Number of Preceding Siblings
From: Jeff Sese <jsese@xxxxxxxxxxxx>
Date: Wed, 01 Aug 2007 14:21:36 +0800
|
Hi,
How can I group nodes for every 50 nodes so that these XML:
<root>
<item id="someid001"/>
<item id="someid002"/>
<item id="someid003"/>
...
<item id="someid999"/>
</root>
will be:
<root>
<group>
<item id="someid001"/>
...
<item id="someid050"/>
</group>
<group>
<item id="someid051"/>
...
<item id="someid100"/>
</group>
...
<group>
<item id="someid851"/>
...
<item id="someid999"/>
</group>
</root>
Thanks,
Jeff
|