[Bug 3704] [XQuery] xml:space attributes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3704





------- Comment #6 from andrew.eisenberg@us.ibm.com  2006-09-15 19:17 -------
(In reply to comment #4)
> Why is it "MAY"?

We cosidered both the XML Recommendation and the practice of current
implementations.

The XML Recommendation, in section 2.10, White Space Handling, says in part:

"This specification does not give meaning to any value of xml:space other than
"default" and "preserve". It is an error for other values to be specified; the
XML processor MAY report the error or MAY recover by ignoring the attribute
specification or by reporting the (erroneous) value to the application.
Applications may ignore or reject erroneous values."

Also, when we discussed this, some members said that their products raise an
error, and others said that they process it without difficulty.

Finally, we noted that our Data Model does not prohibit values other than
"default" and "preserve" for xml:space attributes.

Received on Friday, 15 September 2006 19:17:46 UTC