XML XSLT Table display
From: Pradeep <juneja.pradeep_at_gmail.com>
Date: Sun, 6 Jan 2008 20:07:02 -0800 (PST)
Message-ID: <2698a270-fd4f-4fe1-b4a4-fb3c43f00593@h11g2000prf.googlegroups.com>
</ITEMLIST>
| | PRICE | LOCATION | QTY |
Date: Sun, 6 Jan 2008 20:07:02 -0800 (PST)
Message-ID: <2698a270-fd4f-4fe1-b4a4-fb3c43f00593@h11g2000prf.googlegroups.com>
I have a following XML file
<ITEMLIST>
<ITEM>
<NAME> Item1 </ITEM>
<PRICE> 500 </PRICE>
</ITEM> <ITEM>
<NAME> Item2 </ITEM>
<PRICE> 600 </PRICE>
<LOCATION> XYZ</LOCATION>
</ITEM> <ITEM>
<NAME> Item3 </ITEM>
<PRICE> 700 </PRICE>
<QTY> 25 </QTY>
</ITEM> <ITEM>
<NAME> Item4 </ITEM>
<PRICE> 900 </PRICE>
<QTY> 90 </QTY>
</ITEM>
</ITEMLIST>
and want to display in HTML like following
| | PRICE | LOCATION | QTY |
Item1 | 500 | | | ------------------------------------------- Item2 | 600 | XYZ | | ------------------------------------------- Item3 | 700 | | 25 | ------------------------------------------- Item4 | 900 | | 90 | -------------------------------------------
Is it possible via XSLT to do this ...If yes, kindly provide a small code snippet to do this Received on Sun Jan 06 2008 - 22:07:02 CST