Refactored XmltoHtmlTransformer and refined tests.