W3C home > Mailing lists > Public > www-html-editor@w3.org > January to March 2003

Re: DTD/xhtml-special.ent with 2 errors ?

From: yzzzzz <yzzzzz@netcourrier.com>
Date: Thu, 02 Jan 2003 20:29:15 +0100
Message-ID: <3E14930B.2040807@netcourrier.com>
To: www-html-editor@w3.org

There are two files called DTD/xhtml-special.ent

XHTML 1.0
<http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent>
XHTML 1.1
<http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-special.ent>

The XHTML 1.0 file uses the correct syntax:
<!ENTITY amp     "&#38;#38;">
<!ENTITY lt      "&#38;#60;">

U+0026 the the code for the ampersand '&', so &#38;#60; will be replaced 
by &#60; which is correct (U+003C is the code for '<'.)

The XHTML 1.1 file uses the wrong syntax:
<!ENTITY lt      "&#38;&#60;" >
<!ENTITY amp     "&#38;&#38;" >

If you don't agree, just try validating *any* XHTML 1.0 file (with the 
doctype at the top) using a *real* XML validator (i.e. not 
validator.w3.org) and it'll be valid. On the other hand, it is 
impossible to validate an XHTML 1.1 file because of this error.
Received on Thursday, 2 January 2003 15:28:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:44 GMT