W3C home > Mailing lists > Public > www-validator@w3.org > September 2002

Validator fails horribly on ill-formed XMLDecls

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 15 Sep 2002 21:14:11 +0200
To: www-validator@w3.org
Message-ID: <3d94dad1.115489815@smtp.bjoern.hoehrmann.de>


The following example document will cause horrible results by the
validator (note the missing trailing '?' in the XML declaration):

  <?xml version='1.0' encoding='iso-8859-1'>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  <html xmlns="http://www.w3.org/1999/xhtml">

(online demo at http://www.bjoernsworld.de/temp/invalid-xmldecl.html) 

First, it doesn't warn about the ill-formed XML declaration, then it
fails to detect the character encoding and prints out dozens of errors

  Error: omitted tag minimization parameter can be omitted only if
         "OMITTAG NO" is specified on the SGML declaration 

for non-existent lines.

Received on Sunday, 15 September 2002 15:14:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:29 UTC