- From: <david.dufour@free.fr>
- Date: Thu, 04 Oct 2007 12:30:12 +0200
- 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 UTC