[xsl] looking for an attribute

Subject: [xsl] looking for an attribute
From: "Aaron Johnson" <artpunx@xxxxxxxxx>
Date: Thu, 14 Sep 2006 12:23:08 +0100
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