xsl-list
[Top] [All Lists]

Re: Can this be written in a shorter form?

2004-01-07 01:52:46
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



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