Resolution: Won't Fix
Affects Version/s: None
Fix Version/s: 1.1.0
If user writes:
That's not a legitimate way to create a string containing a space in XML.
Now, we're not going to do the right thing currently if the user writes:
why? we don't even check for the xml:space attribute. All-whitespace nodes are trimmed away explicitly, by Daffodil code.
At least in theory, things that pretty print and or re-indent XML documents should not mess with all-whitespace nodes if xml:space='preserve' is in a surrounding element.
The workaround is simple. Use CDATA region.
The user has to do this:
so as to insist that the content is not fungible XML whitespace.