Hello,
I am using basex 9.0.1
and have this 3 files:

test.xq:
declare variable $test external; $test

test.bxs:
<commands>
        <set option="BINDINGS">test=foo</set>
        <run file="test.xq"/>
</commands>

run.bxs:
<commands>
        <run file="test.bxs"/>
</commands>

Running test.bxs is okay
basex -v test.bxs
BINDINGS: test=foo
foo
Query "test.xq" executed in 5.4 ms.

basex -v run.bxs
BINDINGS: test=foo
Stopped at test.xq, 1/18:
[XPDY0002] No value assigned to $test.

It look like the bindings in test.bxs get lost, when executing the
superior run.bxs. Is there any solution solving this problem?
8.6.7 does not work as well.

regard 
Thomas

echo "declare variable \$test external; \$test" > test.xq; 
echo "<commands><set option=\"BINDINGS\">test=foo</set><run
file=\"test.xq\"/></commands>" > test.bxs; 
echo "<commands><run file=\"test.bxs\"/></commands>" > run.bxs; 
basex -v test.bxs; 
basex -v run.bxs

Reply via email to