xsl-list
[Top] [All Lists]

Re: [xsl] Is there an OR for XSL IF?

2012-01-09 14:01:24


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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--