Can someone explain why passing this function () returns (), instead of an
element or throwing an exception?
declare function local:do-stuff(
$bool as xs:boolean
) as element() {
if ($bool)
then <x/>
else <y/>
};
I see that xs:boolean(())=(), but it seems like this should either eval to
false(), or the function should throw an exception since () isn't a boolean (or
is it?). Otherwise, functions with booleans in their signatures can do weird
things without warning if passed () erroneously.
Thanks,
Will
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general