RE: if question

Subject: RE: if question
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 7 Apr 2000 13:17:29 +0100
> 
>     <xsl:if test="{/foo/bar} != {/foo/cow}">    la la la 
>
Firstly, the curly braces there are a syntax error, any XSLT processor that
accepts this is ... well, not an XSLT processor.

Secondly, all comparison operators on node-sets have an implicit "there
exists". The expression above means: "if there exists an X in /foo/bar and a
Y in /foo/cow such that X!=Y then la la la.

Generally "not(/foo/bar = /foo/cow)" is closer to the intended meaning.

Mike Kay


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


Current Thread