W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2002

Re: new to jTidy, need help urgently

From: Richard A. O'Keefe <ok@cs.otago.ac.nz>
Date: Mon, 4 Mar 2002 15:03:24 +1300 (NZDT)
Message-Id: <200203040203.PAA126623@atlas.otago.ac.nz>
To: html-tidy@w3.org, qpoint@bigfoot.com
"Raymond Tan" <qpoint@bigfoot.com> wrote:
	the file could be converted with warnings. However, it could not be =
	viewed as an XML file in explorer unless i delete the following heading =
	from the document
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Well, of COURSE not.  That's a DTD for HTML 4.0 Transition,
and HTML 4.0 uses SGML, not XML.  That's like trying to use a C header
with a Fortran compiler.  Use the DTD for XHTML 1.0, or possibly XHTML 1.1.
Go to http://www.w3c.org/ and follow the HTML link on the left to find out
about XHTML.
Received on Sunday, 3 March 2002 21:03:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:51 UTC