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

[xsl] Build group of rowly elements


Subject: [xsl] Build group of rowly elements
From: henry human <henry_human@xxxxxxxx>
Date: Fri, 28 Jun 2013 05:09:30 +0100 (BST)

I have following XML data elements to be grouped as package. 
Thanks for any
useful hint
<elements>
 <row>
  <element>S</element>
  <element>01</element>
  <element>ABC</element>
 </row>
 <row>
     <element>MP</element>
  <element>04</element>
  <element>DEF</element>
 </row>
  ......
</elements>
---------------------------
Output mus be like:
<packages>
 <package>
  <name>S</name>
  <id>01</id>
  <description>ABC</description>
 </package>
 <package>
 <name>MP</name>
  <id>03</id>
  <description>DEF</description>
 </package>
 ..........
</packages> 


Current Thread
Keywords
xml