W3C home > Mailing lists > Public > www-validator@w3.org > January 2006

Re: Failed validation, 0 error

From: David Dorward <david@dorward.me.uk>
Date: Tue, 31 Jan 2006 08:16:44 +0000
To: wildrose <wildrose@013.net>
Cc: www-validator@w3.org
Message-ID: <20060131081644.GA15162@us-lot.org>

On Mon, Jan 30, 2006 at 03:09:11PM +0200, wildrose wrote:
> I have this at the head of the page and keep getting the message that my
> page is not valid because the validator can't figure out if the doc is SGML
> or XML. What am I doing wrong???
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 strict//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

> "The MIME Media Type (text/html) for this document is used to serve both
> SGML or XML based documents and it is not possible to disambiguate it based
> on the DOCTYPE declaration in your document. Parsing will continue in SGML
> mode.

You are serving an XML document with an unrecognised Doctype as
text/html. The Doctype for XHTML 1.0 Strict is:

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

You have a lower case "s" on "Strict".

-- 
David Dorward                                      http://dorward.me.uk
Received on Tuesday, 31 January 2006 08:16:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:54 UTC