> But if you say
>
> declare default function namespace "x";
> declare function return ($x) { $x+1 };
> return (23)
>
> that does seem to return 24 for at least one processor that I tried, which
> seems truly bizarre (to me, anyway)

ha that's great (if a little contrived):

declare default function namespace "x";
declare function return ($x) { $x+1 };
return (23)

returns 24

but add a let:

declare default function namespace "x";
declare function return ($x) { $x+1 };
let $foo := 1
return (23)

returns 23

(tested using Saxon HE 9.3.0.5.)
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to