[xquery-talk] incorrect syntax?
Andrew Welch
andrew.j.welch at gmail.com
Tue Oct 2 00:56:32 PDT 2012
> 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.)
More information about the talk
mailing list