Re: DTD file missing from DOCTYPE

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 UTC