Re: [WSG] Serving "application/xhtml+xml" MIME Type to W3C HTML Validator problem

2004-11-18 Thread Simon Jessey
Hi, Andrey. This altered version of the script respects the Validator: ", ">", $buffer)); } if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) { if(preg_match("/application\/xhtml\+xml;q=([01]|0\.\d{1,3}|1\.0)/i",$_SERVER ["HTTP_ACCEPT"],$matches)) { $xhtml_q = $matches[1];

RE: [WSG] Serving "application/xhtml+xml" MIME Type to W3C HTML Validator problem

2004-11-18 Thread Patrick Lauke
> 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