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

Re: Validator fails horribly on ill-formed XMLDecls

From: Martin Duerst <duerst@w3.org>
Date: Tue, 01 Oct 2002 14:59:41 +0900
Message-Id: <4.2.0.58.J.20021001145916.03e22dc0@localhost>
To: Bjoern Hoehrmann <derhoermi@gmx.net>, www-validator@w3.org

Hello Bjoern,

Would the result at
http://validator.w3.org:8001/check?uri=http%3A%2F%2Fwww.bjoernsworld.de%2Fte 
mp%2Finvalid-xmldecl.html&charset=%28detect+automatically%29&doctype=Inline
be more in line with your expectations?

Regards,   Martin.

At 21:14 02/09/15 +0200, Bjoern Hoehrmann wrote:

>Hi,
>
>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"
>       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>   <html xmlns="http://www.w3.org/1999/xhtml">
>     <head>
>       <title></title>
>     </head>
>     <body>
>       <p>...</p>
>     </body>
>   </html>
>
>(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.
>
>regards.
Received on Tuesday, 1 October 2002 03:15:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:04 GMT