I use the Java (6) XML-Api to apply a xslt transformation on a html-document from the web. This document is wellformed xhtml and so contains a valid DTD-Spec (
if you use
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
you can try disable the dtd validation with the fllowing code:
dbf.setValidating(false);