File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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 ]
 
jQuery in Action, 2nd edition
 
subject: how to show an Attribute value in XSL ?
 
Similar Threads
SAX praser passing element's attribute value dynamically
How to pass string instead of xml in xsl
Handling IDREF in XSL
how to use scope in target version of c:set
jsp usebean