formatting xhtml for validation