[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Can this be written in a shorter form?


Subject: [xsl] Can this be written in a shorter form?
From: "Joeri Belis" <joeri.belis@xxxxxxxxxxxx>
Date: Wed, 7 Jan 2004 09:23:42 +0100

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



Current Thread