H:TML: "document in the XML syntax"

http://dev.w3.org/html5/markup/documents.html

"The XML syntax is defined by rules in the XML specification [XML] and in  
the Namespaces in XML 1.0 specification [XMLNS]. Beyond the requirements  
defined in those specifications, this specification does not define any  
additional syntax-level requirements for documents in the XML syntax."

but then:

"A conformant document in the XML syntax must consist of the following  
parts, in the following order:"

...which disallows XML decl and PIs.


"Documents in the XML syntax must conform to XML constraints as defined in  
the XML specification [XML] and in the Namespaces in XML 1.0 specification  
[XMLNS] — including XML well-formedness constraints — and must not make  
use of any features of the HTML syntax that do not follow XML  
well-formedness constraints (for example, documents in the XML syntax must  
not use unquoted attribute value syntax and must not omit tags)."

This seems to contradict the previous statement that there are no further  
requirements. Maybe the text on documents in teh XML syntax should be  
phrased as informative instead of as requirements.


(BTW I tried to file this in bugzilla but I got some error.)

-- 
Simon Pieters
Opera Software

Received on Tuesday, 2 February 2010 22:52:16 UTC