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

Reply via email to