[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: looking for an attribute
Subject: Re: looking for an attribute|
From: "Aaron Johnson" <artpunx@xxxxxxxxx>
Date: Fri, 15 Sep 2006 15:12:48 +0100
Thanks to all responses, it was indeed the context of the node...now works.
On 9/14/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
Your code is correct, provided that the navigation element is the context
node. I suspect it didn't work because the context was wrong, but we can't
see that from your fragment.
> -----Original Message-----
> From: Aaron Johnson [mailto:artpunx@xxxxxxxxx]
> Sent: 14 September 2006 12:23
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: looking for an attribute
> Appologies if this is a repeated request...
> I have some xml...
> <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: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.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format