Is this the right doctype for php xhtml pages
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"; ?> <!-- XHTML DOCTYPE HERE -->
Looks good from where I'm sitting, but you should check with these guys. There is a template at the bottom of that page where they add attribute for 'lang' in the html element:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
You shouldn't use the XML declaration at the top.
It will give you a WORLD OF PAIN on certain browsers / platforms.
See these guys for more details.