W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

tidy ingores specified doctype

From: Sebastian Lange <lange@cyperfection.de>
Date: Tue, 11 Jul 2000 17:54:09 +0200
Message-Id: <4.3.2.7.2.20000711174330.0270dd78@pop3.cyperfection.de>
To: html-tidy@w3.org
When entering following line at the linux console, I should get returned a 
document with the specified doctype, right?

     echo "test" | ./tidy8jul00 --doctype "-//IETF//DTD HTML 2.0//EN"


>doctype: omit, auto, strict, loose or <fpi>
>
>   This property controls the doctype declaration generated by
>   Tidy. If set to omit the output file won't contain a doctype
>   declaration. If set to auto (the default) Tidy will use an
>   educated guess based upon the contents of the document. If set
>   to strict, Tidy will set the doctype to the strict DTD. If set
>   to loose, the doctype is set to the loose (transitional) DTD.
>   Alternatively, you can supply a string for the formal public
>   identifier (fpi) for example:
>
>       doctype: "-//ACME//DTD HTML 3.14159//EN"
>
>   If you specify the fpi for an XHTML document, Tidy will set the
>   system identifier to the empty string. Tidy leaves the
>   document type for generic XML documents unchanged.
>

Yet, tidy's output is as follows. What am I doing wrong?

>Tidy (vers 8th July 2000) Parsing console input (stdin)
>line 1 column 1 - Warning: inserting missing 'title' element
>
>"stdin" appears to be HTML 3.2
>1 warnings/errors were found!
>
><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
><html>
><head>
><meta name="generator" content="HTML Tidy, see www.w3.org">
><title></title>
></head>
><body>
>test
></body>
></html>
>
>HTML & CSS specifications are available from http://www.w3.org/
>To learn more about Tidy see http://www.w3.org/People/Raggett/tidy/
>Please send bug reports to Dave Raggett care of <html-tidy@w3.org>
>Lobby your company to join W3C, see http://www.w3.org/Consortium

==============================================
Cyperfection - agentur fuer neue medien GmbH

Sebastian Lange
<mailto:lange@cyperfection.de>
+49-621-587104-22

Karl-Kraemer-Str. 4
D-67061 Ludwigshafen
fon: +49-(0)621-587104-0
fax: +49-(0)621-587104-90
http://www.cyperfection.de/

Anfahrt - http://www.cyperfection.de/Anfahrt/
==============================================
Received on Tuesday, 11 July 2000 11:57:20 GMT

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