This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XSLT test on the name of a node


> <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]