xsl-list
[Top] [All Lists]

Re: [xsl] Build group of rowly elements

2013-06-28 08:31:16
I did it already with adding Id to the elements inside a row.
brg

----- Ursprüngliche Message -----
Von: Michele R Combs <mrrothen(_at_)syr(_dot_)edu>
An: "'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'" 
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
CC: 
Gesendet: 15:20 Freitag, 28.Juni 2013
Betreff: RE: [xsl] Build group of rowly elements

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(_at_)yahoo(_dot_)de] 
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> 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


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