EDIT: You could use XSLT and FO to render XHTML to some graphical output if you were totally mental.