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] 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
an.uni-konstanz.de Objet : Re: [basex-talk] Weird: mixed content trimmed unexpectedly 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 whit

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