Hi Wendell,

http://docs.basex.org/wiki/XQuery_3.0#External_Variables says you need
"external" between the variable name and ":=".

Regards,

Ben

On 11 June 2013 23:31, Wendell Piez <[email protected]> wrote:
> Hi,
>
> I'm sure you will forgive me if this is as dumb as I'm afraid it might
> be ... trying to cover all possibilities here.
>
> We recently upgraded (now on 7.7beta) and external scripts stopped
> working as expected -- variable bindings of the form
>
> SET BINDINGS $db=my-db,$start=20001,$count=10000
>
> no longer had any effect. Instead, the logic fell back to use values
> declared for the variables in the XQuery, which had:
>
> declare variable $db := 'your-db';
> declare variable $start := 1;
> declare variable $count := 1000;
>
> etc.
>
> When we removed the declarations from the XQuery, things started
> working again. (Note that my assumption of a causal relation here
> could be wrong.)
>
> Should I never have put those declarations in to begin with (even as
> defaults, a la XSLT parameter declarations)?
>
> Is this a BaseX question or an XQuery question? I would like to become
> enlightened.
>
> Thanks as ever,
> Wendell
>
>
> --
> Wendell Piez | http://www.wendellpiez.com
> XML | XSLT | electronic publishing
> Eat Your Vegetables
> _____oo_________o_o___ooooo____ooooooo_^
> _______________________________________________
> BaseX-Talk mailing list
> [email protected]
> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
_______________________________________________
BaseX-Talk mailing list
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to