Error reported by XML parser: "unknown protocol: classpath" when the MathML3 DTD is referenced
When the source document DTD references the MathML3 DTD, XML parsing fails with error "unknown protocol: classpath".
#1 Updated by Michael Kay 28 days ago
The MathML3 DTD is being fetched locally by Saxon's
StandardEntityResolver. Because it is fetched using the classpath ResourceLoader, Saxon gives it a base URI using the "classpath" scheme. (`StandardEntityResolver#789). Xerces is objecting to this URI.
A stacktrace shows that the failure occurs in Xerces'
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity() method, which is calling a
java.net.URL constructor with this supplied URI.
The puzzling thing is that the application isn't obviously doing anything unusual.
Please register to edit this issue