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

Re: Validator doesn't send HTTP_ACCEPT headers, "Conflict between Mime Type and Document Type" warning is incorrect.

From: Sierk Bornemann <sierkb@gmx.de>
Date: Tue, 31 Jul 2007 15:13:00 +0200
Message-Id: <B36032EB-6775-4BCD-8622-8DEBE8A76234@gmx.de>
To: www-validator@w3.org


Am 31.07.2007 um 14:55 schrieb Andreas Prilop:

>> I would be lucky, if I would have such rules for Apache's httpd.conf
>> to satisfy that. Because it seems to be very difficult to check that
>> way (application/xhtml+xml *not* accepted)
>
> It is very easy:
>
>    AddType   application/xhtml+xml;qs=0.95   xhtml

Easy said. But how does this function with generated output *without*  
providing the content *twice*, either as .xhtml file and as .html file?
Hmm?

> Try with
>   http://www.unics.uni-hannover.de/nhtcapri/ruby-annotation

I konw that method since sages, Andreas. And I also annotated  
earlier, that I also use that method for some files.
For some single demonstration pages as yours, that way might be a  
convenient method to distinguish.
But not for sites with many content files. It is far from practise,  
to provide all content files twice as .html and also as .xhtml files.
You need a method, to serve the MIMEtype dynamically for *one single  
document* depending on what the client accepts.
So how do you do that in a normal Apache configuration? I still wait  
for a proposal, especially from you. :-)


Sierk
-- 
Sierk Bornemann
email:            sierkb@gmx.de
WWW:              http://sierkbornemann.de/
Received on Tuesday, 31 July 2007 13:13:17 GMT

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