Invalid DTDs

As far as I can tell, the XHTML DTDs are invalid (or the XML 1.0 spec is
incorrect).  A PEReference can't occur in an AttlistDecl/AttDef section,
according to the XML 1.0 spec, so:

<!ELEMENT html (head, body)>
<!ATTLIST html
  %i18n;
  xmlns       %URI;          #FIXED 'http://www.w3.org/1999/xhtml'
  >

is invalid by:

[52]    AttlistDecl    ::=    '<!ATTLIST' S Name AttDef* S? '>'
[53]    AttDef    ::=    S Name S AttType S DefaultDecl

Received on Saturday, 24 February 2001 18:02:49 UTC