in reply to how to detect if browser supports xhtml
Don't send XHTML as text/html. It won't work now and it wont work in the future either. See http://www.hixie.ch/advocacy/xhtml
Update: AFAIK, if you want to support Internet Explorer, just forget about using XHTML.
In Section
Seekers of Perl Wisdom