'text/html',
'XHTML' => 'application/xhtml+xml'
);
$charset = 'UTF-8'; // Unicode 8-bit character encoding
$lang = 'en-US'; // US English
function doctype($doc = 'xhtml', $type = 'strict', $ver = '1.1') {
global $media, $media_type; // these we share with head(), etc.
$doc = strtoupper($doc);
$type = strtolower($type);
$avail = 'PUBLIC'; // or SYSTEM, but we're not going there yet
// begin FPI
$ISO = '-'; // W3C is not ISO registered [or IETF for that matter]
$OID = 'W3C'; // unique owner ID
$PTC = 'DTD'; // the public text class
// as far as I know the PCL is always English
$PCL = 'EN';
$xlang = 'en'; // this you may want to vary if you're in different locale
// DTDs are all under the Technical Reports (TR) branch @ W3C
$URI = 'http://www.w3.org/TR/';
$doc_top = '' . "\n";
}
$FPI = implode('//', array($ISO, $OID, $PTC . ' ' . $PTD, $PCL));
echo <<<_DTD
$doc_top
_DTD;
} // doctype()
// doctype.php
?>