i think that you could use also
<xsl:template match=".">
<Node><xsl:node-name/></Node>
</xsl:template>
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Andrew Welch
Sent: sexta-feira, 24 de Maio de 2002 11:37
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Getting Node Name
>Can I get the node name like this.
Yes, investigate the functions name() and local-name() such as:
<xsl:template match="*">
<Node>
<xsl:value-of select="local-name()"/>
</Node>
</xsl:template>
cheers
andrew
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|