Subject: Re: Is there an OR for XSL IF?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Mon, 09 Jan 2012 20:01:10 +0000
|
If one follows the link to the Functions and Operators document one
will not find any mention of "and" or "or" as operators - and come
away with the mistaken impression that these operator don't exist.
Good point. Historically there's a justification for this, in that in
XPath 1.0 and/or (like [] and /) were not pure operators (their
semantics didn't consist of evaluating the operands and combining the
results, because of short-circuit semantics). However this argument
disappeared with the way the operators are defined in XPath 2.0.
Unfortunately anything that distributes material differently between the
specs is always a lot of effort; I've tried in the past to move the
description of casting, and it's a nightmare.
Michael Kay
Saxonica
|