Re: [basex-talk] apply variable bindings to command scripts

2014-05-25 Thread Christian Grün
Hi Fabrice, due to the ambiguities that would be caused by executing all command scripts as XQuery, we decided to close Issue 929 [1]. However, some good news: if you experience a little with the existing features of BaseX, you will see that command scripts can easily be created via XQuery and

Re: [basex-talk] apply variable bindings to command scripts

2014-05-05 Thread Fabrice Etanchaud
 : Christian Grün [mailto:christian.gr...@gmail.com] Envoyé : dimanche 4 mai 2014 22:08 À : Fabrice Etanchaud Cc : basex-talk@mailman.uni-konstanz.de Objet : Re: [basex-talk] apply variable bindings to command scripts Hi Fabrice, I'm still hesitant to introduce more features to the command script syntax

Re: [basex-talk] apply variable bindings to command scripts

2014-05-04 Thread Christian Grün
Hi Fabrice, I'm still hesitant to introduce more features to the command script syntax, as all of them will be BaseX-specific. But we could interpret all input as XQuery and execute the resulting XML as BaseX commands. This way, we could write things like.. commands{ for $n in 1 to 10

[basex-talk] apply variable bindings to command scripts

2014-04-11 Thread Fabrice Etanchaud
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