[basex-talk] Geo Module Not found
I am getting the following error: [XQST0059] Module 'http://expath.org/ns/geo' not found. I used the Windows exe setup. What am I missing?
Re: [basex-talk] Geo Module Not found
> [XQST0059] Module 'http://expath.org/ns/geo' not found. How does your query look like? Did you import the module in the query prolog? Reg. db:add, did you try the XQuery code?
Re: [basex-talk] db:create, namespaces not stripped when input is variable?
Fabrice already gave you the answer (thanks!). As this question has not been asked for the first time, I have updated our documentation [1]. Hope this helps, Christian [1] http://docs.basex.org/wiki/Database_Module#db:create On Fri, Nov 27, 2015 at 9:14 AM, Etanchaud Fabricewrote: > Hello Constantine, > > > > IMHO parsing options only apply when there is actually a parsing phase. > > I remember having the same problem with whitespace chopping. > > Would you get expected result by serializing the xml before giving it to the > db:create function ? > > > > Best regards, > > Fabrice > > > > > > De : basex-talk-boun...@mailman.uni-konstanz.de > [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la part de Hondros, > Constantine (ELS-AMS) > Envoyé : jeudi 26 novembre 2015 18:49 > À : 'basex-talk@mailman.uni-konstanz.de' > > Objet : [basex-talk] db:create, namespaces not stripped when input is > variable? > > > > Hello all, > > Any particular reason behind this observed behaviour? (Basex 8.3). > > > > .. > > [1] > > .. > > declare variable $test := > > http://www.elsevier.com/xml/ani/common; > xmlns="http://www.elsevier.com/xml/ani/ani;> > > M.S. > > ; > > > > db:create('test', $test, 'blah', map {'stripns':true()}) > > > > .. > > [2] > > .. > > > > db:open('test')/* > > > > .. > > [3] > > .. > > > > http://www.elsevier.com/xml/ani/ani; > xmlns:ce="http://www.elsevier.com/xml/ani/common;> > > M.S. > > > > > > > > > > I would have expected the namespaces to be shredded … > > > > Cheers, > > Constantine > > > > > > > > > > Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The > Netherlands, Registration No. 33156677, Registered in The Netherlands.
Re: [basex-talk] Location of users.xml
Hi Tom, > is it possible to override the expected location of users.xml? Currently no, but it’s possible to have the data directory inside the war file. Do you use a custom location? If you use RESTXQ, you could use XQuery to copy a users.xml file to the database directory. Christian >> The permission file has been moved from the home directory to the >> database directory. It was renamed from .basexperm to users.xml > > We're using the war distribution, and would prefer to either specify > the location of users.xml via a parameter or have it reside in the > war. > > Is this currently possible? > > Thanks, > -tom >
Re: [basex-talk] Location of users.xml
Hi Christian, hope you're well! >> is it possible to override the expected location of users.xml? > > Currently no, but it’s possible to have the data directory inside the > war file. Do you use a custom location? > > If you use RESTXQ, you could use XQuery to copy a users.xml file to > the database directory. Thanks for the quick response. We use the java client api, so the users.xml needs to be in place or we won't be able to connect. We use usually use a custom location for the database directory. I'll have to think about this a bit more, but I guess we could adapt the war file to our needs and copy the users.xml to the database directory when basex starts up. > Christian Thanks, -tom
[basex-talk] Location of users.xml
Hi, is it possible to override the expected location of users.xml? >From the wiki (http://docs.basex.org/wiki/User_Management) > The permission file has been moved from the home directory to the > database directory. It was renamed from .basexperm to users.xml We're using the war distribution, and would prefer to either specify the location of users.xml via a parameter or have it reside in the war. Is this currently possible? Thanks, -tom
Re: [basex-talk] db:create, namespaces not stripped when input is variable?
Hello Constantine, IMHO parsing options only apply when there is actually a parsing phase. I remember having the same problem with whitespace chopping. Would you get expected result by serializing the xml before giving it to the db:create function ? Best regards, Fabrice De : basex-talk-boun...@mailman.uni-konstanz.de [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la part de Hondros, Constantine (ELS-AMS) Envoyé : jeudi 26 novembre 2015 18:49 À : 'basex-talk@mailman.uni-konstanz.de'Objet : [basex-talk] db:create, namespaces not stripped when input is variable? Hello all, Any particular reason behind this observed behaviour? (Basex 8.3). .. [1] .. declare variable $test := http://www.elsevier.com/xml/ani/common; xmlns="http://www.elsevier.com/xml/ani/ani;> M.S. ; db:create('test', $test, 'blah', map {'stripns':true()}) .. [2] .. db:open('test')/* .. [3] .. http://www.elsevier.com/xml/ani/ani; xmlns:ce="http://www.elsevier.com/xml/ani/common;> M.S. I would have expected the namespaces to be shredded ... Cheers, Constantine Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands.