>
> XForms added one to its XPath functions, but it doesn't (and
> can't) do conditional evaluation.
> http://www.w3.org/TR/xforms/slice7.html#fn-if
Worse, the XForms if() function allows (and arguably requires) both the
"then" and "else" expressions to be evaluated regardless whether the
"condition" parameter is true or false.
(There's also a forwards compatibility nightmare looming because XForms
failed to put its "if" function in a private namespace: it now clashes with
the XPath 2.0 "if" construct).
Michael Kay
http://www.saxonica.com/