Hi,
Doh! Mea culpa: I made an error in the name of the parameter (not the one
in the example above), so of course the binding never worked.
All of the syntax works (in GNU/linux's bash ), except
-b"$db-name=Value" because the shell will interpret $dp, so one must use
instead:
-b'$db-name=Value'
2015-03-05 10:54 GMT+01:00 Olivier Jeulin <olivier.jeulin.work(a)gmail.com>:
> Hello,
>
> I'm also strugling to pass parameters:
> in my XQuery :
> declare variable $db-name external;
> I tried, following the documentation “-b$v=example” :
> basexclient script.xq -b\$db-name=Value
> basexclient script.xq -b"$db-name=FichiersBase"
> basexclient script.xq -bdb-name=Value
> basexclient script.xq -b"db-name=Value"
>
> and everytime:
> [XPDY0002] No value assigned to $db-name.
>
> What's the correct syntax???!
>
>
> 2015-02-23 16:44 GMT+01:00 Marco Lettere <marco.lettere(a)dedalus.eu>:
>
>> Hello all,
>> I'm unable to execute the example from documentation:
>>
>> bin/basex -b$v=example "declare variable $v external; $v"
>>
>> IT gives this exception:
>>
>> Stopped at ., 1/19:
>> [XPST0003] Expecting '$', found 'e'.
>>
>> Any clues?
>> Regards,
>> MArco.
>>
>
>