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

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


Subject: Re: [xsl] Can this be written in a shorter form?
From: Manos Batsis <mbatsis@xxxxxxxxxxx>
Date: Wed, 07 Jan 2004 10:52:46 +0200

Hi Joeri,

Joeri Belis wrote:

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


The part after the 'or' is not a comparison. It should be


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


BTW I haven't watched the thread but $node_detlijn[$node_position]/@type seems too complicated. I'm sure there's a simpler way for what your trying to do, unless you re-use code *too* much ;-)


hth,

Manos

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



Current Thread