XML transformation to HTML and PDF