xsl-list
[Top] [All Lists]

Select elements between others

2004-01-20 02:28:48
I have received, what I consider to be, a badly designed xml file:
<data>
 <block/>
   <item>One</item>
   <item>Two</item>
 <block/>
   <item>One</item>
   <item>Two</item>
   <item>Three</item>
  <block/>
   <item>One</item>
</data>

I want to turn this into a more normal form to make it easier to manage:

<data>
 <block>
   <item>One</item>
   <item>Two</item>
 </block>
 <block>
   <item>One</item>
   <item>Two</item>
   <item>Three</item>
 </block>
 <block>
   <item>One</item>
 </block>
</data>

Thanks

Joe

_________________________________________________________________
Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>