[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
On 9/14/06, Aaron Johnson <artpunx@xxxxxxxxx> wrote:
Re: [xsl] looking for an attribute
Subject: Re: [xsl] looking for an attribute From: "andrew welch" <andrew.j.welch@xxxxxxxxx> Date: Thu, 14 Sep 2006 12:29:38 +0100 |
On 9/14/06, Aaron Johnson <artpunx@xxxxxxxxx> wrote:
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.
It's likely that the context node when you call the named template "scripts" is not <navigation> - either make the XPath absolute or ensure the context node is the right one when you call the template.
cheers andrew
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] looking for an attribute, Aaron Johnson | Thread | Re: [xsl] looking for an attribute, Abel Braaksma |
RE: [xsl] looking for an attribute, Michael Kay | Date | Re: [xsl] looking for an attribute, Abel Braaksma |
Month |
Keywords