Re: Failed validation, 0 error

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