W3C home > Mailing lists > Public > xml-editor@w3.org > January to March 2010

XML 1.0 5e: superfluous whitespace inside quotation marks

From: Nicolas Roeser <n-roeser@gmx.net>
Date: Tue, 16 Feb 2010 23:50:14 +0100
Message-ID: <4B7B2126.9050805@gmx.net>
To: xml-editor@w3.org

in some cases, superfluous whitespace appears after an opening or before
a closing (straight) quotation mark (‘"’). See, for example, one
paragraph below http://www.w3.org/TR/2008/REC-xml-20081126/#dt-chardata:
“The ampersand character (&) and the left angle bracket (<) […] MUST be
escaped using […] the strings " &amp; " and " &lt; " respectively.”

Someone reading that text might interpret that as to include the space
before/after ‘&amp;’ or ‘&lt;’. I think the extra whitespace should be

There are more occurrences of such extra whitespace.

This seems to originate in the XML source[1]; look for usages of the
‘quote’ element. Either the extra whitespace should be removed there, or
the processing of whitespace after an opening or before a closing
‘quote’ tag should be changed.

[1] http://www.w3.org/TR/2008/REC-xml-20081126/REC-xml-20081126.xml


Received on Tuesday, 16 February 2010 22:58:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:47 UTC