I've now improved my coding to the point it now complies with XHTML 1.1 for all pages except the calendar. I'm still working on the calendar, but as I don't actually generate this code, I've got to write a script to hack the pages as they're updated.