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 GMT

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