This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Getting Node Name
- From: Américo Albuquerque <aalbuquerque at viseu dot ipiaget dot pt>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 24 May 2002 12:06:22 +0100
- Subject: RE: [xsl] Getting Node Name
- Keywords: XSL-List
- Reply-to: xsl-list at lists dot mulberrytech dot com
i think that you could use also
<xsl:template match=".">
<Node><xsl:node-name/></Node>
</xsl:template>
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Andrew Welch
Sent: sexta-feira, 24 de Maio de 2002 11:37
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] 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