I just upgraded to Xalan 2.4.D1 and I am getting errors on my stylesheets, which worked fine with previous versions.
The errors seem to be focused on the entity definitions we have at the top of our stylesheets. For instance, if I try to run the following stylesheet -- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"/> </xsl:stylesheet> -- I get the following errors -- [Error] entity-test.xsl:6:52: Element type "xsl:stylesheet" must be declared. [Error] entity-test.xsl:8:28: Element type "xsl:template" must be declared. <?xml version="1.0" encoding="UTF-8"?> If I have a more complicated stylesheet, every single xsl element is reported as undeclared. If I remove the DOCTYPE declaration, then the stylesheet parses without an error. I believe that this DOCTYPE declaration is a perfectly XML construction. Any hints on a fix this problem or another way to define entities would be received gratefully. It would be a major hassle to replace all uses of " " with " ", not just because we use it in thousands of places, but because who can remember what character 160 is? Thanks, JonTom JT Kittredge ITA Software, Inc Cambridge, Massachusetts