Re: [xsl] Substring test

Subject: Re: [xsl] Substring test
From: Owen Rees <owen.rees@xxxxxx>
Date: Thu, 26 Oct 2006 12:23:44 +0100
--On 26 October 2006 10:29 +0100 Aaron Johnson wrote:

I gave this a go:

<xsl:when
test="($tabName[substring-before(@name,'::')]='Home')">home</xsl:when>

If I understand what you are trying to do, the "='Home' should be inside the predicate like this:


<xsl:when test="($tabName[substring-before(@name,'::')='Home'])">home</xsl:when>

--
Owen Rees
Hewlett Packard Laboratories, Bristol, UK

Current Thread