XML XSLT Table display

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pradeep

    #1

    XML XSLT Table display


    I have a following XML file
    <ITEMLIST>
    <ITEM>
    <NAMEItem1 </ITEM>
    <PRICE500 </PRICE>
    </ITEM>
    <ITEM>
    <NAMEItem2 </ITEM>
    <PRICE600 </PRICE>
    <LOCATIONXYZ</LOCATION>
    </ITEM>
    <ITEM>
    <NAMEItem3 </ITEM>
    <PRICE700 </PRICE>
    <QTY25 </QTY>
    </ITEM>
    <ITEM>
    <NAMEItem4 </ITEM>
    <PRICE900 </PRICE>
    <QTY90 </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


Working...