RE: [xml-dev] XML design of ((a and b) or c)

From
Michael Kay <>
To
"'Klotz, Leigh'" <>, 'Rick Marshall' <>
Date
2006-12-15T23:24:24
ID
<01b801c720a0$28a274a0$6401a8c0@turtle>
Thread
RE: [xml-dev] XML design of ((a and b) or c)
> 
> 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/