aspose file tools*
The moose likes XML and Related Technologies and the fly likes how to show an Attribute value in XSL ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "how to show an Attribute value in XSL ?" Watch "how to show an Attribute value in XSL ?" New topic
Author

how to show an Attribute value in XSL ?

Pashi Soni
Greenhorn

Joined: Feb 27, 2003
Posts: 26
I have one XML & DTD which defines that Employee has one attribute
<EMPLOYEE id="101">
---
---
<EMPLOYEE>
how to fetch that Attribute value in XSL ?
<xsl:attribute name="id"> doesnt work
regards
Pashmina
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
<xsl:attribute name="id"> is for creating xml-attributes.
to fetch use something similar to
<xsl:value-of select="//EMPLOYEE/@id"/>
zvon tutorial
[ March 19, 2003: Message edited by: Axel Janssen ]
[ March 19, 2003: Message edited by: Axel Janssen ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to show an Attribute value in XSL ?