turn page into valid xhtml

surprisingly difficult as it happens