in reply to PDF XML and Perl
It is possible to transform XML-described data to almost any media (HTML, WAP, PDF etc) by writing XSL scripts. (XML + XSL = target). It is more difficult to do it the other way around. PDF even very often disallows to do image/text copy/paste.