W3C home > Mailing lists > Public > public-html@w3.org > September 2010

Re: xml:space

From: Julian Reschke <julian.reschke@gmx.de>
Date: Tue, 28 Sep 2010 14:12:02 +0200
Message-ID: <4CA1DB92.9070207@gmx.de>
To: Anne van Kesteren <annevk@opera.com>
CC: "public-html@w3.org" <public-html@w3.org>
On 28.09.2010 13:56, Anne van Kesteren wrote:
> On Tue, 28 Sep 2010 12:01:22 +0200, Julian Reschke
> <julian.reschke@gmx.de> wrote:
>> see <http://www.w3.org/Bugs/Public/show_bug.cgi?id=10197>.
>>
>> I think we should clarify whether xml:space="preserve" is conforming
>> (in application/xhtml+xml) or not.
>>
>> If it's not, the differences document should mention this, and
>> validator.nu may have a bug.
>>
>> If it is, it needs to be mentioned in the spec.
>
> Why would it be non-conforming? It's a feature of XML, not of individual
> languages.

It's a feature of XML (just like xml:id...), but the language still 
needs to define where it's allowed in valid documents.

"A special attribute named xml:space may be attached to an element to 
signal an intention that in that element, white space should be 
preserved by applications. In valid documents, this attribute, like any 
other, MUST be declared if it is used." -- 
<http://www.w3.org/TR/REC-xml/#sec-white-space>

In HTML5 we do not use a schema language, but prose to define 
conformance. That prose just mention where xml:space is allowed.

Best regards, Julian
Received on Tuesday, 28 September 2010 12:12:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:14 GMT