Not to just return a result but write that result back to basex.
Sure! See here [1] (more specifically, [2]).
thanks,
Welcome.
[1] http://docs.basex.org/ [2] http://docs.basex.org/wiki/Command-Line_Options#Standalone
On 2019-10-06 11:53 p.m., thufir wrote:
how do I specify a database for a .xq file to use?
a simple FLOWR:
thufir@dur:~/basex/w3$ thufir@dur:~/basex/w3$ basex titles.xq [warning] /usr/bin/basex: Unable to locate /usr/share/java/jing.jar in /usr/share/java
<title lang="en">Learning XML</title> <title lang="en">XQuery Kick Start</title>thufir@dur:~/basex/w3$ thufir@dur:~/basex/w3$ thufir@dur:~/basex/w3$ cat titles.xq for $x in doc("books.xml")/bookstore/book where $x/price>30 order by $x/title return $x/title thufir@dur:~/basex/w3$
(from w3schools)
thanks,
Thufir