This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
How nested for loop in xsl?
- To: XSL-List at mulberrytech dot com
- Subject: How nested for loop in xsl?
- From: jvhew at asiatravelmart dot com
- Date: Wed, 20 Sep 2000 12:06:16 +0800
- Reply-To: xsl-list at mulberrytech dot com
hi,
I'am new in xsl and hope somebody can help me on this.
I'll like to transform the below input.xml file to
output.xml using the specify xsl file
example:
input.xml
<?xml version="1.0" encoding="UTF-8"?>
<sqlgeneral>
<productA>
<row>
<name>pen</name>
</row>
</productA>
<productB>
<row>
<code>b1221</code>
</row>
<row>
<code>6fr44</code>
</row>
...
</productB>
</sqlgeneral>
output.xml
<?xml version="1.0" encoding="UTF-8"?>
<name>
<item>pen</item>
<type>
<code>b1221</code>
</type>
<type>
<code>6fr44</code>
</type>
</name>
How does the xsl file look like if I need to produce the output.xml file?
Thank you.
regards,
jvhew
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list