W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2007

[whatwg] xml:space

From: Henri Sivonen <hsivonen@iki.fi>
Date: Tue, 23 Jan 2007 15:13:41 +0200
Message-ID: <4CC6E25B-3907-4234-8462-48F8E691436F@iki.fi>
On Jan 22, 2007, at 23:57, Ian Hickson wrote:

> It's automatically conforming everywhere, no? Isn't it an XML thing?

It is an XML thing. XML 1.0 4th ed. says:
> 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. When declared, it MUST  
> be given as an enumerated type whose values are one or both of  
> "default" and "preserve".
http://www.w3.org/TR/REC-xml/#sec-white-space

So the vocabularies that have a DTD and wish to use the attribute  
must declare it in the DTD. For DTDless vocabularies, it doesn't  
exactly say whether the vocabularies should explicitly allow the  
attribute, but explicitly allowing it leaves no ambiguity.

(As a practical matter, it would be nice to explicitly remind  
conformance checker developers that the attribute is conforming.  
Otherwise, it is easily forgotten. :-)

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/
Received on Tuesday, 23 January 2007 05:13:41 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC