xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[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


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor