[basex-talk] Location for import modules

2015-10-15 Thread Paul Swennenhuis
Hi, I installed BaseX 8.3 as Tomcat webapp on a Ubuntu server. Everything works fine, including the DBA interface (very much appreciated, thanks for that!) Except one thing: I can't get the import of XQuery modules right. When I import a module in a .xq file, like this: import module namesp

Re: [basex-talk] Location for import modules

2015-10-15 Thread Christian Grün
Hi Paul, > When I import a module in a .xq file, like this: > import module namespace lib="My Library" at "library.xq"; > BaseX gives me a "[XQST0059] Could not retrieve module '/library.xq' " > error. By default, modules should be found if they are located in the directory of the importing m

Re: [basex-talk] Location for import modules

2015-10-15 Thread Paul Swennenhuis
Hi Christian, Thanks for the swift response. I tried to place it in the directory of the importing module as well but that did not work either. When I run this query: {file:current-dir()} {file:base-dir()} {static-base-uri()} {file:parent(static-base-uri())}

Re: [basex-talk] Location for import modules

2015-10-15 Thread Christian Grün
Hm, difficult. If you want, you can provide us with a minimized WAR file of your webapp, and we could do some more testing. Unfortunately, Tomcat regularly caused problems in the past; this is why we are usually working with Jetty or Glassfish in our projects. On Thu, Oct 15, 2015 at 4:13 PM, Pa

Re: [basex-talk] Location for import modules

2015-10-15 Thread Paul Swennenhuis
Hi Christian, Well, actually the WAR I used is the one distributed at http://basex.org/products/download/all-downloads/ I used Tomcats Application Manager to deploy it. And then I added this to web.xml org.basex.restpath /opt/tomcat/webapps/BaseX83 org.basex.repopath /opt/to

[basex-talk] xml-to-json vs json:serialize

2015-10-15 Thread Marco Lettere
Hi all, I have a bit of difficulty in understanding the rationale behind the XML to Json (and vice-versa) conversions. I must admit I'm a bit confused on when to use which format and how those map to serialization/parsing rules. In particular I'm wondering whether it's really necessary to use

Re: [basex-talk] xml-to-json vs json:serialize

2015-10-15 Thread Hans-Juergen Rennau
Hi Marco, I am not quite sure if I understand your question well, but let me make a couple of remarks about the rationale of treating JSON as XML. XML is accessible to XPath, nested maps and arrays are not. Hence any non-trivial navigation of XML trees is incomparably simpler and more elegant th