Subject: Re: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Grouping the elements, Abel Braaksma | Thread | [xsl] SSI echo as an attribute valu, tom tom |
Re: [xsl] looking for an attribute, Abel Braaksma | Date | [xsl] Grouping the elements, Arulraj |
Month |