<?php
// this is an xhtml 1.0 strict document.
// if the browser receiving can accept xhtml+xml, it will be sent as such
if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") )
{
// compliant browser, send as application/xhtml+xml
header("Content-type: application/xhtml+xml");
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
}
else
{
// non compliant browser, send as text/html
header("Content-type: text/html");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >