Dear all,

Currently, in order to obtain tailored command scripts, I found the following 
solution :

A template test.bxs file :

<commands>
  <open name='${DBNAME}'/>
  <xquery>
        <![CDATA[
                (/document)[1]
        ]]>
  </xquery>
  <close/>
</commands>

A bash script test.sh:

#!/bin/bash

DBNAME=de-dpma-u-meta

eval "cat <<EOF
$(<$1)
EOF
" | basex -c-

And then call :

./test.sh test.bxs


Could it be possible for the variable bindings to be applied also to script 
commands,
So basex  -bDBNAME=de-dpma-u-meta  test.bxs
does the whole job ?

that would work also for commands' sequences like :
<set option='bindings'>.....
<execute> or <run>

Merci !

Best regards,
Fabrice

Reply via email to