Hi all,
I going through big problems trying to parse an HTML (saxon9), the doctype declaration in particular. I know is weird, it should be so easy...
My input HTML looks like:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head> 
...
</head>
<body> 
...
</body>
</html>

My xslt:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:output method="html" />
<xsl:template match="/html">
        </xsl:template>
</xsl:stylesheet>

...and the parser says: 
http://www.w3.org/TR/REC-html40/loose.dtd:31:3: Fatal Error! Error reported by XML parser Cause: org.xml.sax.SAXParseException: The declaration for the entity "HTML.Version" must end with '>'.

Is any mistake on the doctype declaration? should i add some declaration on my stylesheet?
Thanks in advance,

Daniel