This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSLT test on the name of a node
- From: Jörg Heinicke <joerg dot heinicke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 25 Mar 2002 07:02:24 +0100
- Subject: Re: [xsl] XSLT test on the name of a node
- References: <DE39502CB46FAB4E9D48A61DEEDAB75A0B2B3F@3d3-server.3dcube.local>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> <xsl:variable name="translation" select="$language/node()[local-name() =
@ld-tag]" />
Hello Tim,
I think the problem is in the above code. You are selecting nodes, whose
local name is the same as the value of their ld-tag attribute. What you
probably want to have is current()/@ld-tag:
<xsl:variable name="translation" select="$language/node()[local-name() =
current()/@ld-tag]" />
Furthermore node() is a superset of *. node() = * + text() + comment() +
processing-instruction().
Regards,
Joerg
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list