View Single Post
  #7 (permalink)  
Old July 24th, 2004, 05:51 AM
Daniel Walker Daniel Walker is offline
Friend of Wrox
Points: 531, Level: 8
Points: 531, Level: 8 Points: 531, Level: 8 Points: 531, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Snib, I noticed your comment in reference to using XHTML 1.1 with the Validator. I take it you're aware that the Validator doesn't send HTTP_ACCEPT? If serving XHTML to the Validator, it is best to use a MIME header rewrite test such as that suggested by Richard Allsebrook as a modification to the code in this articlehttp://www.xml.com/pub/a/2003/03/19/dive-into-xml.html on O'Reilly's excellent XML.com - namely:

if ( isset($_SERVER["HTTP_ACCEPT"]) and stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {
 header("Content-type: application/xhtml+xml");
 }
 else {
 header("Content-type: text/html");
 }
}

This will send the correct MIME header (and incidentally trns Mozilla into an excellent XML debugging tool.

I just thought I'd mention it, in case you hadn't come across this before.

Dan
Reply With Quote