W3C home > Mailing lists > Public > www-validator@w3.org > February 2006

Re: Conflicting validation results

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 24 Feb 2006 07:59:51 +0200 (EET)
To: David Gatwood <dgatwood@mac.com>
cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.64.0602240750450.4390@korppi.cs.tut.fi>

On Thu, 23 Feb 2006, David Gatwood wrote:

> One of the files is generating validation errors in the w3c validator but not 
> in xmllint's validator
> (xmllint --html --valid index.html).  Both tools are supposedly validating 
> against the same version of the HTML DTD.

Supposedly? A real markup validator uses the document type definition 
specified in the document, without supposing anything.

The word "lint" generally refers to an informal and often unsystematic 
checker, so I would not suppose anything called "xmllint" to perform
(markup) _validation_. Besides, the name suggests XML, and you are (quite 
adequately) not using XML but a (nominally) SGML-based version of HTML.

Thus, read the validator messages. The first message, for example, is 
quite understandable: "document type does not allow element 'BODY' here", 
because you have declared a Frameset DTD, where a HEAD element must not be 
followed by a BODY element but by a FRAMESET element.

In practice, it is best to consult first a suitable tutorial, reference, 
or specification on HTML in order to write a syntactically correct 
Frameset document, if that's what you want. Validators are best used to 
track down unintentional small syntax errors, rather than working with 
documents where the overall structure is syntactically wrong.

> I have attached the (relatively short) file below.

It would have been better to include just a URL.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Friday, 24 February 2006 05:59:59 GMT

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