<div dir="ltr">Hi all,<div><br></div><div>I'm involved in commissioning the addition of adaptive serialization [1] to eXist [2], and I would like to confirm my reading of the spec.  It appears that adaptive serialization has no facility for indenting maps and arrays.  The ser/method-adaptive.xml tests in the qt3 test suite reflect this understanding, esp. tests 32-34.</div><div><br></div><div>In other words, `map { "a": "b", "c": "d" }` must be serialized as `map{"a":"b","c":"d"}` without any whitespace inserted inside the map constructor or between the map entries, and it would be *incorrect* to serialize this map as:</div><div><br></div><div>```</div><div>map { </div><div>    "a": "b",</div><div>    "c": "d"</div><div>}</div><div>```</div><div><br></div><div>Is there room for implementations to use such indentation and still call it "adaptive"?  If so, what basis is there in the spec for such behavior?</div><div><br></div><div>Thanks in advance for any insights into this question,</div><div>Joe</div><div><br></div><div>[1] <a href="https://www.w3.org/TR/xslt-xquery-serialization-31/#adaptive-output">https://www.w3.org/TR/xslt-xquery-serialization-31/#adaptive-output</a></div><div>[2] <a href="https://github.com/eXist-db/exist/issues/1124">https://github.com/eXist-db/exist/issues/1124</a></div></div>