http://www.w3.org/TR/REC-xml/#sec-white-space ...On the other hand, "significant" white space that should be preserved...
So since your parser by default creates significant whitespace where there was none, and removes it where there was, perhaps it could be fixed please, without the user needing to take special steps. Also that would make doc() agree with let:= as I mentioned above.