xhtml compatibility for pdf creation