> > It may not be the way to do it but it's the way it's taught at the
> > article you reference:
> > Oldie but goldie on the subject:
> > http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html
> Aeh...where exactly?
It's in the section "Accommodating legacy browsers" and the PHP code
is:-
<?php
if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {
header("Content-type: application/xhtml+xml");
}
else {
header("Content-type: text/html");
}
?>
I've been happily using this believing I am serving up XHTML and now,
thanks to your "Tools - Page Info" tip I find I am not!!
Alan
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************