W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2002

XML validation error in xhtml-special.ent

From: Miklos Taba <miklos.taba@innovativeideasoy.com>
Date: Sat, 24 Aug 2002 22:33:46 +0300
To: www-html-editor@w3.org
Message-Id: <6839FD5A-B798-11D6-AC04-00039317424C@innovativeideasoy.com>

Hello,

the double escaping is incorrect in
  xhtml-modularization-20010410/DTD/xhtml-special.ent

<!ENTITY lt      "&#38;&#60;" ><!-- less-than sign, U+003C ISOnum -->
<!ENTITY amp     "&#38;&#38;" ><!-- ampersand, U+0026 ISOnum -->

after the first reading the replacement text is:
"&<"
"&&"
what is wrong. (see XML Spec 1.0, 4.6 Predefined Entities)
A correct version:
<!ENTITY lt      "&#38;#60;"> <!--  less-than sign, U+003C ISOnum -->
<!ENTITY amp     "&#38;#38;"> <!--  ampersand, U+0026 ISOnum -->

as it can be found e.g. in
xhtml1-20020801/DTD/xhtml-special.ent

It is also confusing, why we have two variants of an entity
with the same public identifier.

I retrieved both entities from the "tgz' files.


Best regards

Miklos Taba
Received on Saturday, 24 August 2002 15:34:42 GMT

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