xsl-list
[Top] [All Lists]

Re: contains with value-of

2002-10-14 14:39:47

On Mon, 14 Oct 2002, Jakob Rasmussen wrote:

I want to test if "hasChildren" is contained within (or equal to) the value
of the attribute "TYPE" in a node, so I've tried to use this:

<xsl:when test="contains(value-of select='@TYPE','hasChildren')">

but it doesn't work, so what to do?

Try

  <xsl:when test="@TYPE = 'hasChildren'">

// Gregory Murphy <Gregory(_dot_)Murphy(_at_)sun(_dot_)com>
// Software Engineer
// Customer Network Platform, Sun Microsystems


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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