[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: looking for an attribute
Subject: Re: 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
|
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
RSS 2.0 |
|
Atom 0.3 |
|
|