Reputation: 395
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?
Upvotes: 0
Views: 126
Reputation: 6229
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.
Upvotes: 1