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

RE: How Can I omit DOCTYPE using Tidy COM/MXSML

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Sat, 29 Jul 2000 15:47:32 -0400
To: <html-tidy@w3.org>
Message-ID: <NBBBICMNIPCICMKJECCBKEJDDLAA.jelks@jelks.nu>
Ken Chandler wrote:

> The proper public IDs for XHTML (the XML implementation of HTML) are:
>
> <!DOCTYPE html
>      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>      "DTD/xhtml1-strict.dtd">
>
> <!DOCTYPE html
>      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>      "DTD/xhtml1-transitional.dtd">
>
> <!DOCTYPE html
>      PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
>      "DTD/xhtml1-frameset.dtd">

Those are actually incorrect.  Yes, I know that's what it says in the
Recommendation, but it's a misprint.  It *should* be corrected soon, or so I've
heard.  The only ways those would work with a validating XML parser is if you
have a subdirectory of your current directory called "DTD". The real
declarations should read:

<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">


/Jelks
Received on Saturday, 29 July 2000 15:50:29 GMT

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