Dear BaseX people,
I am a hopeless newbie when it comes to Linux. Seriously, my ignorance is astonishing. I am now running Linux Mint. It's a huge amount of fun but I'm left guessing about many simply things.
I am running the current BaseX 7.9. I am using it to provide a pipeline architecture calling lots of XSLT2, producing HTML and SVG. It works well for this.
To my RESTXQPATH I wish to append to - but not override (if possible) - a path.
By editing my .basex configuration I have managed to reset it, but not simply to append to it.
That is,
RESTXQPATH = /home/wendell/basex/webapp:/home/wendell/XQuery-project/restxq
With this, the server skips the basex/webapp directory. If I remove the second segment and restart, it goes live again.
What is the simplest way for me to set up my BaseX so that I can maintain my project xqm files (including a project's RestXQ), in the project, but keep BaseX otherwise (including its data directories) separate? Over the longer term I can see several such directories where I'd like BaseX to look.
On another operating system I used to start up using different shell scripts; is that the best way here (and if so does my shell script have to call Java or can I use the scripts in the basex/bin and pass in a value somehow)?
In general, what recommendations can you offer for no-fuss configuration of RestXQ for separate projects?
Thanks! Wendell
Hi again,
Correction: of course, under the "composite" path, neither path works.
Perhaps BaseX can only have a single RestXQ directory at a time?
Thanks again for your patience with me. :-)
Cheers, Wendell
On Wed, Jan 7, 2015 at 5:29 PM, Wendell Piez wapiez@wendellpiez.com wrote:
Dear BaseX people,
I am a hopeless newbie when it comes to Linux. Seriously, my ignorance is astonishing. I am now running Linux Mint. It's a huge amount of fun but I'm left guessing about many simply things.
I am running the current BaseX 7.9. I am using it to provide a pipeline architecture calling lots of XSLT2, producing HTML and SVG. It works well for this.
To my RESTXQPATH I wish to append to - but not override (if possible) - a path.
By editing my .basex configuration I have managed to reset it, but not simply to append to it.
That is,
RESTXQPATH = /home/wendell/basex/webapp:/home/wendell/XQuery-project/restxq
With this, the server skips the basex/webapp directory. If I remove the second segment and restart, it goes live again.
What is the simplest way for me to set up my BaseX so that I can maintain my project xqm files (including a project's RestXQ), in the project, but keep BaseX otherwise (including its data directories) separate? Over the longer term I can see several such directories where I'd like BaseX to look.
On another operating system I used to start up using different shell scripts; is that the best way here (and if so does my shell script have to call Java or can I use the scripts in the basex/bin and pass in a value somehow)?
In general, what recommendations can you offer for no-fuss configuration of RestXQ for separate projects?
Thanks! Wendell
-- Wendell Piez | http://www.wendellpiez.com XML | XSLT | electronic publishing Eat Your Vegetables _____oo_________o_o___ooooo____ooooooo_^
Hello Wendell,
your last guess is correct: BaseX can only handle a single RESTXQ directory. So solutions using a colon a separator will not work, simply because we do not support it. It does not depend on the OS (although I personally think you did a wise thing in trying out GNU/Linux ;).
The usual approach would be to have a separate .basex in your webapp directory. So if you start basex from this directory it will use this values instead your default ones. More likely you might want to store the BaseX specific values in your jetty.xml (if using Jetty), so they are used for the application container. This has several advantages: - Your web application can not access some default functionality, which shouldn't really be available. - You can use different BaseX version for different projects by including BaseX within the webapp itself - You can also define different configurations for your different webapps (e.g. all your projects run on a different port, so you can run them simultanously)
Cheers, Dirk
On 01/07/2015 11:32 PM, Wendell Piez wrote:
Hi again,
Correction: of course, under the "composite" path, neither path works.
Perhaps BaseX can only have a single RestXQ directory at a time?
Thanks again for your patience with me. :-)
Cheers, Wendell
On Wed, Jan 7, 2015 at 5:29 PM, Wendell Piez wapiez@wendellpiez.com wrote:
Dear BaseX people,
I am a hopeless newbie when it comes to Linux. Seriously, my ignorance is astonishing. I am now running Linux Mint. It's a huge amount of fun but I'm left guessing about many simply things.
I am running the current BaseX 7.9. I am using it to provide a pipeline architecture calling lots of XSLT2, producing HTML and SVG. It works well for this.
To my RESTXQPATH I wish to append to - but not override (if possible) - a path.
By editing my .basex configuration I have managed to reset it, but not simply to append to it.
That is,
RESTXQPATH = /home/wendell/basex/webapp:/home/wendell/XQuery-project/restxq
With this, the server skips the basex/webapp directory. If I remove the second segment and restart, it goes live again.
What is the simplest way for me to set up my BaseX so that I can maintain my project xqm files (including a project's RestXQ), in the project, but keep BaseX otherwise (including its data directories) separate? Over the longer term I can see several such directories where I'd like BaseX to look.
On another operating system I used to start up using different shell scripts; is that the best way here (and if so does my shell script have to call Java or can I use the scripts in the basex/bin and pass in a value somehow)?
In general, what recommendations can you offer for no-fuss configuration of RestXQ for separate projects?
Thanks! Wendell
-- Wendell Piez | http://www.wendellpiez.com XML | XSLT | electronic publishing Eat Your Vegetables _____oo_________o_o___ooooo____ooooooo_^
basex-talk@mailman.uni-konstanz.de