Dear all,
in BaseXWin 6.2.9,
the execution of any request will always return root() when following the declaration of an 'updating' function.
 
declare updating function local:update1($mark as element()) {
 if (false()) then () else ()
};
(: any request not returning root() :)
/blablabli
 
---> root()
 
removing 'updating' from the function declaration will give the expected answer.
 
best regards,
and thank you for your fantastic DBMS.