I agree that it might be reasonable to introduce different defaults
for WebDAV communication. Problems could arise if documents are opened
with WebDAV that have been stored via REST or another API… But we
could give it a try.
On Thu, Aug 10, 2017 at 11:28 PM, Andy Bunce
It seems globally setting `indent=no` gets applied to WebDAV (and
everywhere else where serialization is not explicit specified). This would
be my preference for WebDAV, as it means documents can be round-tripped
without any changes being introduced. The only side effect from this
setting I have
Hi Andy,
> Can the WebDAV serialization be set independently of the default, in
> web.xml?
The defaults for whitespace chopping and serialization can only be
assigned globally for all features of BaseX. Did you try to set both
'org.basex.chop' and 'org.basex.serializer' in web.xml / does it
>But it may definitely cause undesirable output if a document contains no
superfluous whitespaces,
One situation where the default serialization indentation can be
problematic is WebDAV.
Can the WebDAV serialization be set independently of the default, in
web.xml?
/Andy
On 7 August 2017 at
Dear Ottid,
Thanks for providing us with the helpful example, which helped me to
understand the problem.
>> replace /a foo bar
> "a.xml" (Line 1): Open quote is expected for attribute "xml:space"
> associated with an element type "root".
Just a side note: Command-line parsing is restrictive
(Sorry for the noise, but because my previous mail was shown under trimmed
content in my Sent Mail, I will resend it without format just in case it
was not shown properly to others as well)
>From the documentation about the CHOP option I assumed that since
xml:space="preserve" sets CHOP = false
>From the documentation about the CHOP option I assumed that since
xml:space="preserve" sets CHOP = false for that part of the document, that
if I set CHOP = false in my configuration file, that the behavior you get
when you use xml:space="preserve" would be applied to the whole database (I
7 matches
Mail list logo