W3C home > Mailing lists > Public > www-validator@w3.org > October 2007

XHTML 1.1 validator rejects xml:space attributes

From: <david.dufour@free.fr>
Date: Thu, 04 Oct 2007 12:30:12 +0200
Message-ID: <1191493812.4704c0b4b7692@imp.free.fr>
To: www-validator@w3.org

Hello,


several commercial validators validate the following simple document:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Title</title>
	</head>
	<body>
		<p xml:space="preserve">Some text here</p>
	</body>
</html>

W3C validator rejects the xml:space attribute and tells me the document is not
valid XHTML 1.1.

It looks like a bug to me because in XHTML 1.1 DTD, we have:
<!ENTITY % Core.attrib
     "%XHTML.xmlns.attrib;
      %id.attrib;
      %class.attrib;
      %title.attrib;
      xml:space    ( preserve )             #FIXED 'preserve'
      %Core.extra.attrib;"
>

Moreover, why this attribute has been added in XHTML 1.1 is explained in W3C
FQA:
"Why is xml:space set to 'preserve' on all elements of XHTML?"

Best Regards,
David
Received on Friday, 5 October 2007 00:45:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:25 GMT