[xsl] Re: print out the actual node (NEWBIE)

Subject: [xsl] Re: print out the actual node (NEWBIE)
From: thomas <thomas.lohbeck@xxxxxx>
Date: Mon, 16 Sep 2002 15:16:44 +0200
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


Current Thread