Regards to http://www.w3.org/MarkUp/2004/xhtml-faq#ie I just discovered,
I was just wondering if we could use :
<?php
if (stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) {
header("Content-Type: application/xhtml+xml; charset=UTF-8");
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
printf("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"
\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n");
$contentType="application/xhtml+xml; charset=utf-8";
} else {
header("Content-Type: text/html; charset=UTF-8");
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
printf("<?xml-stylesheet type=\"text/xsl\" href=\"copy.xsl\" ?>\n");
printf("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
$contentType="text/html; charset=utf-8";
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Hehe</title>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="<?php printf($contentType);
?>" />
What do you think about ? I suppose if the trick works, everyone will
use it. I never heard about it before. Any informations / suggestions
about it ?
--
Wcube . eQuesto
Pierre-Henri LAVIGNE
Web developer xhtml - css
33, rue des Jeûneurs - FR 75002 Paris
[EMAIL PROTECTED]
Phone: +33(0)1 42 47 83 83
www.wcube.fr / www.equesto.fr
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************