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

RE: [xsl] Build group of rowly elements


Subject: RE: [xsl] Build group of rowly elements
From: Michele R Combs <mrrothen@xxxxxxx>
Date: Fri, 28 Jun 2013 13:20:04 +0000

Looks pretty straightforward:

match="elements" to output packages
match="row" to output package
match="element[1]" to output name
match="element[2]" to output id
match="element[3]" to output description

Right?

-----Original Message-----
From: henry human [mailto:henry_human@xxxxxxxx]
Sent: Friday, June 28, 2013 12:10 AM
To: xslforum xslforum
Subject: [xsl] Build group of rowly elements

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