Hi Hans-Jürgen,
you may need to set the CHOP Option to false before creating a database or document [1]. Do you think this solves the problems? If no, do you have a small example that demonstrates the confusion?
Christian
[1] http://docs.basex.org/wiki/Startup_Options ___________________________
On Wed, Nov 21, 2012 at 3:41 PM, Hans-Juergen Rennau hrennau@yahoo.de wrote:
Hello,
it seems to me there is a couple of issues concerning the handling of indentation (serialization parameter "indent").
a) Using "indent=no" whitespace-only text nodes between element nodes are removed b) Using "indent=yes" the content of elements with xml:space="preserve" is indented, too
I suppose both behaviors are in contraction to the spec ( http://www.w3.org/TR/xslt-xquery-serialization/#xml-indent ).
As a particular consequence, (a) seems to preclude making an exact copy of a document (fragment) - all whitespace-only text nodes vanish.
And as a consequence of (b) one has no possibility to locally protect the whitespace used in the source document, as required for example when reusing "programlisting" elements of docbook.
Or did I overlook something?
Kind regards, Hans-Juergen
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk