This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: if question


> 
>     <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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]