Re: [basex-talk] BaseX: Upcoming Features

2014-03-20 Thread Christian Grün
...noted ;) Replication is indeed one of the features that we have already realized (but it's not open source yet). On Thu, Mar 20, 2014 at 12:03 AM, Alexander Shpack shadow...@gmail.com wrote: Hi Christian, What about redo logs and master/slave replication? On Tue, Mar 18, 2014 at 2:03

[basex-talk] feature's requests and not publicly released features

2014-03-20 Thread Fabrice Etanchaud
Dear all, First of all, BaseX is just fantastic ! Could you please tell me if you may release the following features in near future ? 1. User defined indexes Let's consider you have to index multi lingual documents. Currently, one have to partition each document in mono-lingual

[basex-talk] Question about BaseX JAVA API Usage ...

2014-03-20 Thread Christopher Lyons
I've just starting using BaseX (V.7.8.1) and have a very quick question that I hope somebody can help me with. I've reviewed the BaseX docs and tried looking for an answer to this on the Wiki but have not been successful. I've installed BaseX (on Win7 Pro/64-bit) and have been using the GUI

Re: [basex-talk] Question about BaseX JAVA API Usage ...

2014-03-20 Thread Dirk Kirsten
Hello Christopher, thanks for your mail and we are happy to help. I also highly appreciate that you consulted the wiki first :) I fixed the links to the BaseX examples. Indeed, we change the project structure and did not update the corresponding links, so thank you for the hint. Indeed, your

[basex-talk] Bug (?) - trailing whitespace in text nodes

2014-03-20 Thread Hans-Juergen Rennau
Dear BaseX team, I think I observed a bug concerning trailing whitespace in text nodes. Please consider this input document: paraxxx    emphasis role=italicabc/emphasis yyy./para [Note the blanks between xxx and emphasis.] The result of the following null-transformation

Re: [basex-talk] Bug (?) - trailing whitespace in text nodes

2014-03-20 Thread Dirk Kirsten
Dear Hans-Jürgen, When running local:edit() on an in-memory node I get the expected and correct result, including whitespaces. I guess that you run this command on a database node and the XML documents were parsed with CHOP being true (which is the default), this would explain the behavior and

Re: [basex-talk] Bug (?) - trailing whitespace in text nodes

2014-03-20 Thread Maximilian Gärber
Hi, did you set the chop option? http://docs.basex.org/wiki/Options#CHOP Regards, Max 2014-03-20 16:57 GMT+01:00 Hans-Juergen Rennau hren...@yahoo.de: Dear BaseX team, I think I observed a bug concerning trailing whitespace in text nodes. Please consider this input document: paraxxx

Re: [basex-talk] Bug (?) - trailing whitespace in text nodes

2014-03-20 Thread Hans-Juergen Rennau
Dear Dirk, thank you. But this is strange - I ran the query using a file as input - not a database document. I tried two versions:    BaseX 7.8.2 beta f505185 [Standalone]    BaseX 8.0 beta 606f18b [Standalone] OS is Windows 7. I always get this result: paraxxxemphasis

Re: [basex-talk] Bug (?) - trailing whitespace in text nodes

2014-03-20 Thread Hans-Juergen Rennau
My understanding is that it only affects database documents, and I used file input. Nevertheless, I also tried option -w, but always got the same result. Kind regards, Hans-Jürgen Hans-Juergen Rennau hren...@yahoo.de schrieb am 17:45 Donnerstag, 20.März 2014: Dear Dirk, thank you. But

Re: [basex-talk] Bug (?) - trailing whitespace in text nodes

2014-03-20 Thread Dirk Kirsten
Dear Hans-Jürgen, I am not quite sure it is intended that the CHOP option is applied to text nodes. At least the wording in the documentation (while building a database) does not indicate it, while I think it actually does make sense. Christian will have to answer whether this works as is

[basex-talk] possible bug - using inline functions in unit tests

2014-03-20 Thread Jan Techter
Dear basex team, running the following unit test involving a simple anonymous function declare %unit:test function local:test-inline-function() { let $f := function($x) {$x+1} return unit:assert-equals( $f(5), 6) }; raises a java exception [exec] Improper use? Potential bug? Your

Re: [basex-talk] BaseX: Upcoming Features

2014-03-20 Thread Andy Bunce
To put some numbers on query precompilation [3]. I have been using Apache ab to time a very simple RESTXQ request declare %rest:GET %rest:path(bsp/simple) %output:method(text) function simple() {test}; ab -n 100 -c 10 http://localhost:8984/bsp/simple I timed this when my webapp folder had a

Re: [basex-talk] possible bug - using inline functions in unit tests

2014-03-20 Thread Christian Grün
Hi Jan, the bug seems to be fixed already in the latest snapshot [1]; could you give it a try? Christian [1] http://files.basex.org/releases/latest/ On Thu, Mar 20, 2014 at 6:35 PM, Jan Techter tech...@mailbox.tu-berlin.de wrote: Dear basex team, running the following unit test involving

Re: [basex-talk] Bug (?) - trailing whitespace in text nodes

2014-03-20 Thread Hans-Juergen Rennau
Mm, the documentation says: Chops all leading and trailing whitespaces from text nodes while building a database, and discards empty text nodes. By default, this option is set to true, as it often reduces the database size by up to 50%. It can also be turned off on command line via -w. The

Re: [basex-talk] Bug (?) - trailing whitespace in text nodes

2014-03-20 Thread Christian Grün
Hi Hans-Jürgen, Chops all leading and trailing whitespaces from text nodes while building a database, and discards empty text nodes. By default, this option is set to true, as it often reduces the database size by up to 50%. It can also be turned off on command line via -w. The text

Re: [basex-talk] mailing list archives 403?

2014-03-20 Thread Christian Grün
Hi Jesse, I got feedback from the system administration; the problem is fixed again. Best, Christian On Tue, Mar 18, 2014 at 12:47 AM, Jesse Clark je...@jesseclark.com wrote: Is anybody else getting a 403 Forbidden error trying to access the mailing list archives?

[basex-talk] restriction on number of namespaces has apparently been lifted – thank you

2014-03-20 Thread Imsieke, Gerrit, le-tex
Today I noticed that I could actually build an index of all XSLT, XProc, Relax NG and Schematron files on my hard disk (3316 files). I couldn’t do that 2 years ago because the maximum number of distinct namespaces in a DB was limited to 256 or so. Thanks, BaseX team, for lifting this

Re: [basex-talk] Bug (?) - trailing whitespace in text nodes

2014-03-20 Thread Hans-Juergen Rennau
HURRA! -wi fixes the problem! Thank you very much, Christian, and Dirk, too. I had not understood that I must use -w in combination with i - what I had tried was -i ... -w . Now I know how I can always avoid the problem (which tends to be necessary when dealing with mixed content, where of

Re: [basex-talk] Bug (?) - trailing whitespace in text nodes

2014-03-20 Thread Christian Grün
HURRA! -wi fixes the problem! Thank you very much, Christian, and Dirk, too. Perfect. It's helpful to know that BaseX interprets all command-line flags from left to right.. This way, flags that have been activated for a first command/query/etc. can later be turned off again in a single basex