For the scenario described elsewhere (http://www.mail-archive.com/talk@x-query.com/msg00786.html), which is correct to use please, standalone or clien/server modes, for initial testing?
If you want to run BaseX with a little web server, please browse through the following page…
http://docs.basex.org/wiki/RESTXQ
…and check out the zip distribution, which contains a basic example for building web pages with XQuery and RESTXQ.
Christian