Subject: Re: looking for an attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 14 Sep 2006 12:53:20 +0100
|
> I thought it would be <xsl:when test="focusedTab[@name='Login']"> but
that would test if the current node had a child element with that
attribute.If you want to test if the current element has the attribute
then
<xsl:when test="@name='Login'">
> <xsl:template name="scripts">
> <xsl:choose>
if your template just consists of an xsl:choose consider instead using
apply-templates
replace
<xsl:call-template name="scripts"/>
by
<xsl:apply-template select="@name"/>
then you can have
<xsl:template match="@name[.='Login']">....
David
| Current Thread |
|
David Carlisle - 14 Sep 2006 11:53:39 -0000 <=
|
|