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

Re: XHTML Basic

From: David Dorward <david@dorward.me.uk>
Date: Tue, 11 Jul 2006 07:51:45 +0100
To: magick <jasper.magick@gmail.com>
Cc: www-validator@w3.org
Message-ID: <20060711065145.GA17178@us-lot.org>

On Mon, Jul 10, 2006 at 06:39:20PM -0400, magick wrote:
>    Error Line 5 column 58: character data is not allowed here.
>    <link rel='stylesheet' type='text/css' href='mobile.css' />
>    ***********
>    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN"
>    I'm not really sure the problem, according to this page the LINK element
>    is allowed in XHTML Basic.

It is complaining about character data, not the link element.

I think you may notice a warning along the lines of:

   The MIME Media Type (text/html) for this document is used to serve
   both SGML and 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.

... when you try to validate your document. This is because the
validator doesn't know that your Doctype is an XML Doctype (and note
that XHTML Basic 1.1 is a working draft, not a recommendation, so it
isn't all that surprising that its internal catalog hasn't been
updated yet) and you are serving it as text/html.

In HTML <foo /> is pretty much the same as <foo>&gt; - and it the &gt;
that it is complaining about.

Only XHTML 1.0 documents that conform to the extra restrictions laid
down in Appendix C qualify for the "MAY be served as text/html"
clause. XHTML 1.1 documents do not, XHTML Basic documents do not, and
other XHTML documents do not.

Your document should be served as application/xhtml+xml.


(I read the mailing list, please address responses there and do not CC
me. Thanks)

David Dorward                                      http://dorward.me.uk
Received on Tuesday, 11 July 2006 06:51:59 UTC

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