This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: using "and" / "or"
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] using "and" / "or"
- From: "Michael Beddow" <mbnospam at mbeddow dot net>
- Date: Sat, 4 Aug 2001 09:29:15 +0100
- References: <5.1.0.14.0.20010803145010.028c5d10@earthlink.net>
- Reply-To: xsl-list at lists dot mulberrytech dot com
The thing that tends to confuse people about boolean operations in XSLT
is that, although the *operators* are and behave as you would expect,
the *operands* aren't always what programmers from other backgrounds
assume them to be, especially where one or both of them is a node-set
rather than (the equivalent of) a string. So when Boolean expressions
return apparently odd results, people suspect there's something odd
about the operators (or maybe their associativity), when the problem
lies in what they're evaluating.
Michael
---------------------------------------------------------
Michael Beddow http://www.mbeddow.net/
XML and the Humanities page: http://xml.lexilog.org.uk/
---------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list