W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2001

Re: DTD file missing from DOCTYPE

From: Terry Teague <terry_teague@users.sourceforge.net>
Date: Fri, 5 Oct 2001 00:55:22 -0700
Message-Id: <l03130300b7e3113356bb@[17.219.108.47]>
To: html-tidy@w3.org
At 6:11 PM -0700 10/4/01, Patrick Lok wrote:
>I found that the DOCTYPE created by the latest tidy is not the same as the
>one created by the 04aug00 version.
>
>When I turn on "output-xhtml" and set "doctype" to auto the latest tidy
>gives me
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
>
>where the 04aug00 version gives me
>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
>Since the DTD file is missing from the DOCTYPE, it blew up my XML parser.
>
>Although the HTML code might actually be 3.2, since I turned on
>"output-xhtml", shouldn't the DOCTYPE be a XHTML DOCTYPE instead?

There were a lot of problems related to DOCTYPE in the 04 Aug 00 version,
which we have attempted to address in the current code.

The current implementation will output a XHTML DOCTYPE for "doctype:auto"
only if the document is/appears to be XHTML Strict, Transitional or
Frameset.

So I believe Tidy is acting correctly in regards to your HTML 3.2 document.

>Also, uppercase-tags and uppercase-attributes don't seem to be working, I'm
>I missing something?

To quote :

<http://www.w3.org/TR/xhtml1/>

"4.2 Element and attribute names must be in lower case

XHTML documents must use lower case for all HTML element and attribute
names. This difference is necessary because XML is case-sensitive e.g. <li>
and <LI> are different tags."


I'm not the expert in the area of DOCTYPEs, so if you still think there is
a problem, please provide additional details and a test case that
demonstrates the problem.

Hope this helps.

Regards, Terry
Received on Friday, 5 October 2001 04:12:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:46 GMT