This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Getting Node Name


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]