W3C home > Mailing lists > Public > www-xpath-comments@w3.org > October to December 1999

Re: lack of if/else?

From: James Clark <jjc@jclark.com>
Date: Sun, 14 Nov 1999 10:07:58 +0700
Message-ID: <382E278E.FEB21884@jclark.com>
To: "Mark D. Anderson" <mda@discerning.com>
CC: www-xpath-comments@w3.org
It's on the list of features for future versions (see the Appendix in
the XSLT spec).

"Mark D. Anderson" wrote:
> i'm curious as to the reason in omitting if-else from xpath?
> i might note that xslt defers to xpath for most of its operators,
> but it felt obliged to add if else in (or rather, if and choose).
> since the boolean operators (and, or, not) are stricly boolean,
> it is not possible to use c-style tricks to simulate if-else.
> in some situations it is possible to achieve if-else semantics
> by use of test expressions (using '[ ... ]') and node-set union
> (the '|' operator).
> but that doesn't allow for using if-else within an expression.
> -mda
Received on Monday, 15 November 1999 00:12:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:02:13 UTC