xsl-list
[Top] [All Lists]

Re: [xsl] Substring test

2006-10-26 01:58:04
Thank you for your response David, though I think I asked the wrong question!

What I actually want to do is do two things, the first is apply this
choose if the first part of the element contains Home before the ::
(effectively ignoring the :: and foo)

<xsl:choose>
                <xsl:when test="($tabName = 'Home')">home</xsl:when>
                <xsl:otherwise>detachFocus</xsl:otherwise>
</xsl:choose>

<focusedTab unremovable="true" immutable="true" ID="38" name="Home::foo"/>

Then use a similar test to ask if Home is present followed by :: then
find out what is foo

Hope this makes sense?


On 10/25/06, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:

test="contains(@name,'::')"

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>