xsl-list
[Top] [All Lists]

[xsl] looking for an attribute

2006-09-14 04:23:21
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[(_at_)name='Login']"> but
it won't work.

Any help would be appreciated.

Aaron

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>