lack of if/else?

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 Saturday, 13 November 1999 18:30:07 UTC