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

Re: DTD file missing from DOCTYPE

From: Patrick Lok <plok@inktomi.com>
Date: Fri, 05 Oct 2001 02:09:10 -0700
Message-Id: <5.0.2.1.2.20011005015000.02d444f0@inkt-3.inktomi.com>
To: html-tidy@w3.org
At 12:55 AM 10/5/01, Terry Teague wrote:
>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.

Although the HTML code that I submitted to Tidy is actually of version 3.2, 
I turned on output-xml, shouldn't the output be XHMTL?

Thanks,
Patrick
Received on Friday, 5 October 2001 05:07:54 GMT

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