W3C home > Mailing lists > Public > www-validator@w3.org > April 2007

Re: [ANN] Beta test of the W3C Markup Validator (0.8.0 beta 1)

From: Sierk Bornemann <sierkb@gmx.de>
Date: Tue, 24 Apr 2007 11:53:24 +0200
Message-Id: <2476A0C5-8725-461A-8E09-D91C4D9AD167@gmx.de>
Cc: olivier Thereaux <ot@w3.org>, "www-validator@w3.org Community" <www-validator@w3.org>
To: Sam Ruby <rubys@intertwingly.net>


Am 19.04.2007 um 02:25 schrieb Sam Ruby:

>
> olivier Thereaux wrote:
>> * New Feature: additional XML-WF check, for more reliable  
>> validation of XML-based languages
>> * New feature: checking that the documents are sent with proper  
>> Internet Media Type (MIME type)
>> * New feature: for XML documents, checking that the xmlns is  
>> present, and properly set.
>
> Can I request that the validator send out an HTTP ACCEPT header  
> which indicates what MIME types are supported by this validator?
>
> Many people who do support the correct MIME type for XHTML do so  
> only if the user agent indicates that such a MIME type is supported.
>
> -Sam Ruby


Please have a look at http://validator-test.w3.org/check?uri=http%3A% 
2F%2Fsierkbornemann.de%2F&charset=&doctype=&group=0

The MIME type on sierkbornemann.de is rewritten and set via a  
mod_rewrite rule as follows:

<IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
     RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml\s*;\s*q=0
     RewriteCond %{REQUEST_URI} \.html$
     RewriteCond %{THE_REQUEST} HTTP/1\.1
     RewriteRule .* - [T=application/xhtml+xml;charset=UTF-8]
</IfModule>

Controlling the delivery of the webserver via the Firefox browser  
states, that http://sierkbornemann.de is served as "application/xhtml 
+xml". So the rule above is right and does, what it should do.
Why does Validator 0.8 Beta anyway throw out the following warning  
message

"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
...
" ?

Sierk


-- 
Sierk Bornemann
email:            sierkb@gmx.de
WWW:              http://sierkbornemann.de/
Received on Tuesday, 24 April 2007 09:53:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:24 GMT