How to get the element name in XSLT -


i'm editing xsl file, , having trouble getting name of element.

everything here works except ../../name(). i'm trying there name of element. beneath gets attributes of same element, fact ../../@name (etc.) works should make clear i'm trying ../../name().

<tr> <td><xsl:value-of select="../../name()" /></td> <td><xsl:value-of select="../../@name"/></td> <td><xsl:value-of select="../../@alias"/></td> <td><xsl:value-of select="../../@comment"/><xsl:text>...</xsl:text></td> <td><xsl:value-of select="../../dxl:wassignedby" /></td>  <td><xsl:apply-templates select="."/></td> </tr> 

the piece of xml (in case helps visualize i'm talking about) is:

<form name="extended content" alias="content" hide="notes" nocompose="true" noquery="true" publicaccess="false" designerversion="8"> 

i'm getting (e.g.) "extended content" ../../@name, not getting "form" ../../name().

<xsl:value-of select="../../name()" /> 

works in xpath 2.0 where:

<xsl:value-of select="name(../..)" /> 

works in both xpath 1.0 , 2.0. guess running xpath 1.0 , should use latter one.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -