• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

how to show an Attribute value in XSL ?

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic