I have made a substantial revision to the article I wrote about making AdSense work with documents served as
application/xhtml+xml. I have managed to remove the need for special CSS, and the new solution is more elegant than before.
The revision came out of something Roger Johansson had said in my comments. He suggested sniffing the
Accept header and then using PHP to serve either the
if statement that tests that variable allows me send the correct code for the type.
Anyone who finds the technique useful should go to my archive page and visit my sponsors!