Well

You're trying to use SGML DTD for XML Document

And furthermore it doesn't seem related to saxon (it is more an XML Question so send to xml-dev)

Xmlizer

On Wed, Jul 15, 2009 at 11:30 AM, Daniel Viedma <dviedma@gmail.com> wrote:
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


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/saxon-help