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

On Tue, 31 Jul 2007, Sierk Bornemann wrote:

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

*Of course* the content exists twice:
 http://www.unics.uni-hannover.de/nhtcapri/ruby-annotation.html
 http://www.unics.uni-hannover.de/nhtcapri/ruby-annotation.xhtml

Compare the content - they *are* different.
HTML and XHTML are different.

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

That would be a silly idea. When you have a single document, you
serve it with the appropriate MIME type.

> You need a method, to serve the MIMEtype dynamically for *one single
> document* depending on what the client accepts.

No, this is just a silly idea. You choose the correct MIME type
according to your document.

-- 
In memoriam Alan J. Flavell
http://groups.google.com/groups/search?q=author:Alan.J.Flavell

Received on Tuesday, 31 July 2007 13:38:30 UTC