This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: if question
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: if question
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 7 Apr 2000 13:17:29 +0100
- Reply-To: xsl-list at mulberrytech dot com
>
> <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