RE: [xsl] Getting the value of the tag itself.

Subject: RE: [xsl] Getting the value of the tag itself.
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Thu, 20 Mar 2003 10:38:27 -0500
 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


Current Thread