Re: DTD file missing from DOCTYPE

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 UTC