> From: Andrey V. Stefanenko > Why validator do not accept source with "application/xhtml+xml" ?
The validator does not send out application/xhtml+xml in its accept header, so your script is behaving correctly by sending it text/html. You may wish to do something like adding code that looks for an extra $_GET variable set in the URL to force application/xhtml+xml. for instance, you could change if($mime == "application/xhtml+xml") to if(($mime == "application/xhtml+xml")||(isset($_GET['xhtml']))) then, when sending URLs to the validator, make sure you append a GET parameter of "xhtml", i.e. instead of validating http://www.foo.com/bar.php you'd send validator to check http://www.foo.com/bar.php?xhtml Hope this makes some kind of sense, Patrick ________________________________ Patrick H. Lauke Webmaster / University of Salford http://www.salford.ac.uk ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
