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];
> 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