Re: lack of if/else?

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