This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to show an Attribute value in XSL ?

 
Pashi Soni
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic