XML XSLT Table display

Discussion in 'XML' started by Pradeep, Jan 7, 2008.

  1. Pradeep

    Pradeep Guest

    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
     
    Pradeep, Jan 7, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stylus Studio
    Replies:
    0
    Views:
    714
    Stylus Studio
    Aug 3, 2004
  2. Replies:
    4
    Views:
    691
  3. Pradeep

    XML XSLT Table display

    Pradeep, Jan 7, 2008, in forum: HTML
    Replies:
    1
    Views:
    346
  4. Pradeep

    XML XSLT Table display

    Pradeep, Jan 7, 2008, in forum: XML
    Replies:
    1
    Views:
    490
    Martin Honnen
    Jan 7, 2008
  5. Pradeep

    XML XSLT Table display

    Pradeep, Jan 7, 2008, in forum: XML
    Replies:
    0
    Views:
    375
    Pradeep
    Jan 7, 2008
Loading...

Share This Page