xsl-list
[Top] [All Lists]

Re: Getting the value of the tag itself.

2003-03-20 08:30:50
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