[basex-talk] Xslt:processor() and xslt:version() incorrect with Saxon 9.1B

2019-12-09 Thread Majewski, Steven Dennis (sdm7g)
I have noticed that BaseX xslt:processor() and xslt:version() returns incorrect info when used with Saxon 9.1B It appears to identify it as a Saxon processor, and assumes it’s Saxon HE and version 3.0 . This is different from what the XSLT system-property function returns. ( I’m using

Re: [basex-talk] running in parallel

2019-12-09 Thread Giuseppe G. A. Celano
I forgot to mention that I often use fork-join() with proc:execute() to run in parallel more than one instance of the OCR engine “tesseract” (I can have more than 1000 images to OCR): it works fabulously (up to 8 processes on my Quad-core Intel Core i7). More in general, when it comes to

Re: [basex-talk] Weird: mixed content trimmed unexpectedly

2019-12-09 Thread Christian Grün
Hi Arjan, You can also change the default and disable CHOP in your web.xml file [1]. Similar to Omar, we often use xml:space='preserve' in our own projects to mark mixed-content areas in the documents. For some reason that I never managed to fully grasp, though, the XML specification provides

Re: [basex-talk] Weird: mixed content trimmed unexpectedly

2019-12-09 Thread Liam R. E. Quin
On Mon, 2019-12-09 at 20:27 +0100, Arjan Loeffen wrote: > > In general: when the wiki states here: "Many XML documents include > whitespaces that have been added to improve readability. ", this > should not > apply to mixed content fragments as described. Only to start and end > of > "text

Re: [basex-talk] Weird: mixed content trimmed unexpectedly

2019-12-09 Thread Arjan Loeffen
Hey thanks Omar, Fabrice and Martin. 1. *?chop=false* works. 2. *xml:space='preserve'* works In general: when the wiki states here: "Many XML documents include whitespaces that have been added to improve readability. ", this should not apply to mixed content fragments as described. Only

Re: [basex-talk] running in parallel

2019-12-09 Thread Giuseppe G. A. Celano
Thanks for your answers! I have run an experiment, and I confirm that fork-join() actually works, even if the gain is not as expected. Most importantly, I noticed that the amount of RAM made available is crucial: with 2MB the sequential script was very slow, while with 5/7MB it works fine.

Re: [basex-talk] file pattern when creating DB

2019-12-09 Thread Christian Grün
Hi Fabrice, A chat for BaseX sounds like a good idea; I think the great guys from eXist-db did something similar? Would some more of you be interested in having such a chat? We’ll internally discuss this in the near future. Cheers, Christian PS: Thanks for the kudos. On Mon, Dec 9, 2019 at

Re: [basex-talk] Weird: mixed content trimmed unexpectedly

2019-12-09 Thread Omar Siam
Ok so I remembered correctly. Can I pass this in a REST PUT operation? Am 09.12.2019 um 16:53 schrieb Martin Honnen: On 09.12.2019 16:51, Omar Siam wrote: Probably there is an option (CHOP?) that one can set to tell BaseX not to trim whitespace at the edges of text nodes. Yes, see

Re: [basex-talk] Weird: mixed content trimmed unexpectedly

2019-12-09 Thread ETANCHAUD Fabrice
Hi Omar, did you try http://localhost:8984/rest/LeapinLists/test.xml?chop=false ? Best regards, Fabrice De : BaseX-Talk de la part de Omar Siam Envoyé : lundi 9 décembre 2019 16:51 À :

Re: [basex-talk] running in parallel

2019-12-09 Thread Omar Siam
Hi, I see the same in my application. My two cent of wisdom: I would say most disks today will be fast enough to mask this problem. Let alone SSDs that can happily fetch two files at the (almost) same time. But the thing is: The exist code uses some pretty heavy locks to make sure no two

Re: [basex-talk] running in parallel

2019-12-09 Thread Christian Grün
Hi Giuseppe, Maybe you can consult the mailing list archive for more information on concurrent/parallel query processing; there has been a lot of discussion in the past (e.g. [1]). Cheers, Christian [1] https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg12080.html On Sun, Dec

Re: [basex-talk] Weird: mixed content trimmed unexpectedly

2019-12-09 Thread Martin Honnen
On 09.12.2019 16:51, Omar Siam wrote: Probably there is an option (CHOP?) that one can set to tell BaseX not to trim whitespace at the edges of text nodes. Yes, see http://docs.basex.org/wiki/Options#XML_Parsing

Re: [basex-talk] Weird: mixed content trimmed unexpectedly

2019-12-09 Thread Omar Siam
Hello, I had some expierence of this of my own. Saxon and other XML tools are better at guessing what the user wants. Probably there is an option (CHOP?) that one can set to tell BaseX not to trim whitespace at the edges of text nodes. But to my knowledge the standard way is to add

[basex-talk] Weird: mixed content trimmed unexpectedly

2019-12-09 Thread Arjan Loeffen
Dear BaseX People, after many (happy!) projects using BaseX I have found that curl -i -X PUT --basic --user admin ^ -H "Content-Type: application/xml" -d " test for me " "http://localhost:8984/rest/LeapinLists/test.xml; stores test forme To the database. Notice the spaces in the XML

Re: [basex-talk] file pattern when creating DB

2019-12-09 Thread ETANCHAUD Fabrice
Great ! XQuery 3.1 is such a powerful language, Thanks to Christian and his team's members ! I have been using BaseX for ten years, and never saw such helping team and community as BaseX's ones ! Christian, did you think about bringing BaseX to Slack ? Best regards, fabrice

Re: [basex-talk] file pattern when creating DB

2019-12-09 Thread radim-havlicek
Thank you very much! That was exactly what I was looking for. Best regards, Radim Havlicek -- Původní e-mail -- Od: ETANCHAUD Fabrice Komu: BaseX Datum: 9. 12. 2019 10:28:57 Předmět: Re: [basex-talk] file pattern when creating DB " Radim, here is a simple snippet : 

Re: [basex-talk] file pattern when creating DB

2019-12-09 Thread ETANCHAUD Fabrice
Radim, here is a simple snippet : db:create('test-db', 'F:\Utilisateurs\14484H\data\test', (), map { 'createfilter' : '*.*' }) Fabrice De : radim-havli...@post.cz Envoyé : lundi 9 décembre 2019 10:19 À : ETANCHAUD Fabrice Cc :

Re: [basex-talk] file pattern when creating DB

2019-12-09 Thread radim-havlicek
Hi, I've seen the link before but I was unable to compose the particular query to create the database with filter *, and still I am. -- Původní e-mail -- Od: ETANCHAUD Fabrice Komu: radim-havli...@post.cz , basex-talk@mailman. uni-konstanz.de Datum: 9. 12. 2019 10:14:37

Re: [basex-talk] file pattern when creating DB

2019-12-09 Thread ETANCHAUD Fabrice
Hi Radim, you can pass parsing options to db:create [1], and set createfilter to the desired glob pattern. Best regards, Fabrice [1] : http://docs.basex.org/wiki/Database_Module#db:create De : BaseX-Talk de la part de radim-havli...@post.cz Envoyé : lundi

[basex-talk] file pattern when creating DB

2019-12-09 Thread radim-havlicek
Hello, I would like to ask about filters. I'd like to call XQuery db:create("DB", "c:/Temp/defaultDocuments/", "/") but with filter pattern * becase without that pattern it adds *.xml files only. I would like to add all files from that directory and sub-directories. Is it possible to put