Transform XML into HTML table

admin

Administrator
Staff member
Here is my XML:<ITEMS><TABLE><ITEM>Mouse</ITEM><ITEM>Keyboard</ITEM><ITEM>Monitor</ITEM><ITEM>CPU</ITEM></TABLE><TABLE><ITEM>Windows 2000</ITEM><ITEM>J2EE</ITEM><ITEM>Office 2000</ITEM></TABLE></ITEMS>I need the following HTML (A table with x rows and 2 columns)<HTML><BODY><TABLE><TR><TD>Mouse</TD><TD>Keyboard</TD></TR><TR><TD>Monitor</TD><TD>CPU</TD></TR></TABLE><TABLE><TR><TD>Windows 2000</TD><TD>J2EE</TD></TR><TD>Office 2000</TD><TR></TABLE></BODY></HTML>The problem that I am having is writing a style sheet that puts the <TR></TR> tags around two items at a time. If anyone can supply the XSLT codeto do this, it would be greatly appreciated.Darryl
 
Back
Top