Working with XHTML is all very commendable, but if the default (read wrong) MIME type is sent to the UA then you are still only sending HTML documents out to browserland. If this is the case you may as well work with the HTML doctype. So how do you send the correct MIME type for XHTML?
There are various methods depending on your situation. One can configure the server to send the correct MIME type based on file type, use httpd or htaccess files, or force the correct MIME type through the header of the page using your favourite server side code (ASP, PHP, .NET, et al). There's just one problem though – Internet Explorer currently doesn't support documents served with the
application/xhtml+xml MIME type. This is where we need to perform a negotiation between the server and browser about the media types the browser can accept, and which one it prefers. Read the rest of this entry »

Recent Comments