|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to use xPath expression: /node/@attribute to
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 /
+------//-------------------+
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








