[Bug 3085] fn:boolean: FS, F&O and XQuery contradict

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3085





------- Comment #1 from frans.englich@telia.com  2006-04-05 14:18 -------

I think you have a valid point; "If $arg is a sequence whose first item is a
node, fn:boolean returns true" implicitly states that after the first node in
$arg, anything can follow, such as atomic values.

Which makes me bet on that the second bullet point in F&O's section 15.1.1
fn:boolean is wrong. Perhaps it should be changed to read "If $arg is a
non-empty sequence of nodes, fn:boolean returns true." That would be the most
consistent with what is my impression of how fn:boolean() is supposed to
behave. 

If so, 2.4.3 Effective Boolean Value in XPath20 would need an update as well,
as usual.


Regards,
Frans

Received on Wednesday, 5 April 2006 14:18:52 UTC