Issue Details (XML | Word | Printable)

Key: XERCESJ-1104
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Unassigned
Reporter: William Eliot Kimber
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Xerces2-J

Resolution of schemaLocation URIs should be via URI resolution, not entity resolution

Created: 06/Oct/05 01:05 AM   Updated: 21/Oct/05 07:25 AM
Return to search
Component/s: XNI
Affects Version/s: 2.6.0, 2.7.1
Fix Version/s: None

Time Tracking:
Not Specified

Environment: All

Resolution Date: 12/Oct/05 01:15 AM


 Description  « Hide
The resolveSchema() method of XSDHandler uses the entityResolver to resolve URIs in schema location hints. This has the effect that, when using a catalog resolver that SYSTEM entries are used to resolve the schema URIs.

However, schemas are not entities and therefore their URI references should not be resolved via an entity resolver but via a URI resolver and should, therefore be resolved via URI catalog entries, not SYSTEM entries.

That is, by the OASIS Entity Resolution spec one would expect to declare URI entries to remap schema location URIs but this does not work.

I'm happy to develop a fix but it may take me a while to figure out exactly how to go about it.

Because this behavior has been around for a while (since at least version 2.6) and is documented in at least one tutorial I found, it will probably be necessary to control the use of an entityResolver or URI resolver through a system property.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.