xsl-list
[Top] [All Lists]

Re: print out the actual node (NEWBIE)

2002-09-16 06:16:44
I found a resolution. ugly hack I think...but it works
<xsl:value-of select="name(../../../..)"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="name(../../..)"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="name(../..)"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="name(..)"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="name()"/>

thomas wrote:
Im having problems with my template and I think somehow its related to the node. Is there a way to print out the actual node I'm in?

<a>
 <b/>
 <c>
 <xsl:value-of select="name()"/>
 </c>
 <d/>
</a>

prints out only "c"
but I need "a/c"

cant find anything.

thanx

le beck



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