W3C home > Mailing lists > Public > www-validator@w3.org > September 2007

application/xhtml+xml

From: Nikodem <nikn1@gazeta.pl>
Date: Wed, 26 Sep 2007 15:16:44 +0200
Message-ID: <46FA5BBC.4050508@gazeta.pl>
To: www-validator@w3.org

Does validator even send application/xhtml+xml in Accept header?! It 
always complains that my page with such code:

$xhtml = false;
if(preg_match('/application\/xhtml\+xml(?![+a-z])(;q=(0\.\d{1,3}|[01]))?/i', 
$_SERVER['HTTP_ACCEPT'], $matches))
{
	$xhtmlQ = isset($matches[2])?$matches[2]:1;
	if($xhtmlQ!=0) $xhtml = true;
}
header('Content-Type: '.($xhtml?'application/xhtml+xml':'text/html').'; 
charset=utf-8');

has differences between Content-Type and DTD.

-- 
Nikodem
JID: nikn@jabber.org
Received on Wednesday, 26 September 2007 13:17:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:09:00 UTC