Thanks for your time, J David Eisenberg I ended up following all your suggestions except the last one, and I have uploaded the new version. http://www.xmlplease.com/xhtml/xhtml5polyglot/ If you have time for more, it would be much appreciated. Cheers Jesper Tverskov http://www.xmlplease.com