Project

Profile

Help

Bug #4814

Error reported by XML parser: "unknown protocol: classpath" when the MathML3 DTD is referenced

Added by Michael Kay 28 days ago. Updated 27 days ago.

Status:
New
Priority:
Low
Category:
-
Sprint/Milestone:
-
Start date:
2020-10-29
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:

Description

When the source document DTD references the MathML3 DTD, XML parsing fails with error "unknown protocol: classpath".

History

#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.

#2 Updated by Norm Tovey-Walsh 27 days ago

  • Assignee changed from Michael Kay to Norm Tovey-Walsh

Please register to edit this issue

Also available in: Atom PDF