• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to show an Attribute value in XSL ?

 
Pashi Soni
Greenhorn
Posts: 26
  • 0
  • 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
  • 0
  • 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic