PDA

View Full Version : Displaying XML attribute using XSL



udbw2
Aug 20th, 2002, 07:47 PM
Is there a way of displaying the id number I have as an attibute of my xml page.

<atable if="1">
...
</atable>
...
...
...

Is there some way of using xml:value-of select=".id" for showing the attribute value or is this not possible through XSL?

jkd
Aug 20th, 2002, 09:49 PM
<xsl:value-of select="@id"/>

udbw2
Aug 20th, 2002, 10:10 PM
Finally. I searched under XML attribute viewing and all other things i could think of to try and find an article that told me how to show them, but I got the same tutorials over and over again. Thank you.:)