Re: xml:space

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 UTC