XML XSLT Table display

XML XSLT Table display

am 07.01.2008 04:45:30 von pradeep

I have a following XML file


Item1

500


Item2

600
XYZ


Item3

700
25


Item4

900
90



and want to display in HTML like following

-------------------------------------------
| | PRICE | LOCATION | QTY |
-------------------------------------------
Item1 | 500 | | |
-------------------------------------------
Item1 | 600 | XYZ | |
-------------------------------------------
Item1 | 700 | | 25 |
-------------------------------------------
Item1 | 900 | | 90 |
-------------------------------------------


Is it possible via XSLT to do this ...If yes, kindly provide a small
code snippet to do this

Re: XML XSLT Table display

am 07.01.2008 09:44:06 von jeff

Pradeep wrote:
> I have a following XML file
>
>
> Item1

> 500
>
>
> Item2

> 600
> XYZ
>
>
> Item3

> 700
> 25
>
>
> Item4

> 900
> 90
>
>

>
> and want to display in HTML like following
>
> -------------------------------------------
> | | PRICE | LOCATION | QTY |
> -------------------------------------------
> Item1 | 500 | | |
> -------------------------------------------
> Item1 | 600 | XYZ | |
> -------------------------------------------
> Item1 | 700 | | 25 |
> -------------------------------------------
> Item1 | 900 | | 90 |
> -------------------------------------------
>
>
> Is it possible via XSLT to do this ...If yes, kindly provide a small
> code snippet to do this
>
>
You must not have googled too hard. This was the first hit I got:



Go read the XSLT resources. Either online or buy a book.

Jeff