Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-06 10:27:38

fen
Member
Registered: 2007-05-23
Posts: 12
Website

Page passed validation, 1 warning(s), how to solve ?

check the warning here

Conflict between Mime Type and Document Type

The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml

Using a wrong media type for a certain document type may confuse the validator and other user agents with respect to the nature of the document, and you may get some erroneous validation errors. How to fix this problem? One of the following techniques should help:

* If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mathml for MathML. * You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS. * If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP.

Offline

#2 2007-11-06 11:37:22

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Page passed validation, 1 warning(s), how to solve ?

1.1 cannot be served as text/html. you have to use 1.0 for that.

Offline

#3 2007-11-06 13:50:29

fen
Member
Registered: 2007-05-23
Posts: 12
Website

Re: Page passed validation, 1 warning(s), how to solve ?

Oh, I want to use 1.1, but finally I should use 1.0 …

Last edited by fen (2007-11-06 13:56:35)

Offline

#4 2007-11-06 15:03:31

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Page passed validation, 1 warning(s), how to solve ?

well..whats your reasoning in wanting to use xhtml 1.1?

if you weren’t sure why you were getting that warning serving xhtml 1.1 as text/html then you probably need to know a bit more before just ‘wanting to use 1.1’

Offline

#5 2007-11-07 14:37:55

ragger
Member
From: Netherlands
Registered: 2005-04-10
Posts: 82
Website

Re: Page passed validation, 1 warning(s), how to solve ?

With the plugin phw_DTD you CAN serve your documents with media type application/xhtml+xml. I use it on my sites.

Offline

#6 2007-11-07 14:53:58

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Page passed validation, 1 warning(s), how to solve ?

like i said you can’t use xhtml 1.1 and send as text/html.

Offline

#7 2007-11-07 15:08:48

ragger
Member
From: Netherlands
Registered: 2005-04-10
Posts: 82
Website

Re: Page passed validation, 1 warning(s), how to solve ?

iblastoff wrote:

like i said you can’t use xhtml 1.1 and send as text/html.

True. So I linked to a plugin that makes Textpattern serve its pages as application/xhtml+xml (which it does not by default).

Offline

Board footer

Powered by FluxBB