This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: print out the actual node (NEWBIE)
- From: thomas <thomas dot lohbeck at ksc dot ch>
- Cc: XSL-List at lists dot mulberrytech dot com
- Date: Mon, 16 Sep 2002 15:16:44 +0200
- Subject: [xsl] Re: print out the actual node (NEWBIE)
- References: <3D85A2DC.7040205@ksc.ch>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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