xhtml compliance improvements