How nested for loop in xsl?

Subject: How nested for loop in xsl?
From: jvhew@xxxxxxxxxxxxxxxxxx
Date: Wed, 20 Sep 2000 12:06:16 +0800
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


Current Thread