Altova Mailing List Archives
>xsl-list Archive Home
>Thread Prev - [xsl] How to use xPath expression: /node/@attribute to retrieve attribute nodes in XSLT?
Re: [xsl] How to use xPath expression: /node/@attribute to retrieve attribute nodes in XSLT?
Date: 12/12/2004 6:46:00 AM
On Sunday 12 December 2004 07:58, Yuye Chen wrote: > Hi, > > Can anyone let me know why the following template rule, which > try to retrieve the attribute node from XML, cannot work? > > <xsl:temlate match="/company/employee/@empID"> > <output> > <xsl:value-of select="."/> > <output/> > </xsl:template> I would do; <xsl:temlate match="/company/employee"> <output> <xsl:value-of select="@empID"/> <output/> </xsl:template> -- +------//-------------------+ / http://www.dpml.net / / http://niclas.hedhman.org / +------//-------------------+