0

I am new to using xquery and baseX. I am using the standalone prompt of baseX. I want to run an xquery, contained in abc.xq which can accept an input from a file, say, data.xml.

Basically, abc.xq has a bound variable 'request' which it will extract from data.xml payload.

How do i do this from command line of GUI of baseX?

MiKu
  • 385
  • 1
  • 5
  • 16

1 Answers1

1

The BINDINGS option allows you to define variable assigments, which will then bound to a query. With the SET command, you can set these variables before running your query.

A new option for assigning external variables and the context item may be added to the GUI in a future version of BaseX.

Christian Grün
  • 6,012
  • 18
  • 34