Subject: Re: [xsl] looking for an attribute From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Thu, 14 Sep 2006 13:36:27 +0200 |
>>>> Example of normal template. Here the context node is "navigation": <xsl:template match="/"> <xsl:apply-template select="navigation"/> </xsl:template> <xsl:template match="navigation"> <xsl:if test="focusedTab[@name = 'Login']" > .... </xsl:if> </xsl:template>
Cheers, Abel Braaksma http://abelleba.metacarpus.com
Appologies if this is a repeated request...
I have some xml...
<navigation>
<focusedTab unremovable="true" immutable="true" ID="50" name="Login"/>
<inactiveTab unremovable="true" immutable="true" ID="38" name="Home"/>
</navigation>
I would like to test if the focused tab has an attribute of "login" so as to impliment a choose statement...
<xsl:template name="scripts"> <xsl:choose> <xsl:when test="?????'"> etc etc....
I thought it would be <xsl:when test="focusedTab[@name='Login']"> but it won't work.
Any help would be appreciated.
Aaron
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] looking for an attribute, andrew welch | Thread | Re: [xsl] looking for an attribute, Abel Braaksma |
Re: [xsl] looking for an attribute, andrew welch | Date | Re: [xsl] looking for an attribute, Abel Braaksma |
Month |