Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML XSLT Table display

Reply
Thread Tools

XML XSLT Table display

 
 
Pradeep
Guest
Posts: n/a
 
      01-07-2008

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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML XSLT Table display Pradeep XML 1 01-07-2008 11:04 AM
XML XSLT Table display Pradeep HTML 1 01-07-2008 08:44 AM
XML XSLT Table display Pradeep XML 0 01-07-2008 04:05 AM
Problem to insert an XML-element by XSLT-converting from one XML-file into another XML-file jkflens XML 2 05-30-2006 09:41 AM
ANN: New low-cost XML Editor, XSLT Editor, XSLT Debugger, DTD/Schema Editor Stylus Studio Java 0 08-03-2004 03:53 PM



Advertisments