Alexander Dupuy wrote:
> 
> While XXE will do the right thing with <literallayout>, <screen>, etc.
> in a valid DocBook document, if you use XXE to edit an invalid document,
> the whitespace gets normalized in all elements, which is somewhat
> unfortunate (especially if you save the perhaps-now-valid but
> lacking-whitespace-formatting document).
>
> If there's an easy way to preserve the whitespace in elements for which
> the DTD specifies that it should be (even if the document doesn't
> validate against the DTD), it would be a nice enhancement for XXE.
> After all, it never hurts to preserve whitespace.

Improving the user friendliness of XXE for invalid documents is really
not easy to do (because of the way XXE is implemented).

We'll try to improve the behavior of XXE for this xml:space="preserve"
problem but I cannot ensure you that we'll manage to do it.



> This isn't a critical problem, as XXE makes it difficult to generate
> invalid documents, but my co-workers (who can't shake that emacs
> addiction :-) threw this problem out as "another reason to shun xxe" (I
> would call it "another reason to shun editors like emacs that allow you
> to create invalid documents") and it would certainly be nice to impress
> them once again with the superiority of the best WYSIWYG XML editor around.

In my opinion, the main problem with emacs, jEdit, etc, is not the fact
that you can create invalid documents but the fact that what you see is
hard to read.

Reply via email to