xsl-list
[Top] [All Lists]

RE: Getting the value of the tag itself.

2003-03-20 08:38:27
 Simon Kelly]
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??

<xsl:value-of select='name()'>

or if namespaces are in play, you may want 

<xsl:value-of select='local-name()'>

Cheers,

Tom P

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list