xsl-list
[Top] [All Lists]

Can this be written in a shorter form?

2004-01-07 01:23:42
This is part of a <xls:choose> test

<xsl:when test="$node_detlijn[$node_position]/@type = 'text' or
$node_detlijn[$node_position]/@type = 'style'">

I need to test if the attribute type = "style" or "text".

I tried
<xsl:when test="$node_detlijn[$node_position]/@type = 'text' or 'style'">

But this did not work and seems to result in a node-set instead of string
comparing?

Joeri



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



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