xhtml compatibility for pdf export