Subject: Re: Getting the value of the tag itself.
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 20 Mar 2003 15:30:50 +0000
|
Hi Simon,
> I know haow to get all the relevent information from a node, but I
> am struggling to remeber how to get the nodes name itself. IE if I
> have a node called <table name="table1"> how do I print out it's
> name table, and not the @name table1??
Use the name() or (better) local-name() function:
<xsl:value-of select="local-name(.)" />
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|