xsl-list
[Top] [All Lists]

Re: [xsl] Substring test

2006-10-26 04:24:04
--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



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