Bug 4414 - Namespace URI not used to find schema.
Summary: Namespace URI not used to find schema.
Status: NEW
Alias: None
Product: Xerces-J
Classification: Unclassified
Component: Schema-Structures (show other bugs)
Version: 1.4.3
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Xerces-J Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-25 05:15 UTC by Magnus Kristiansen-Mod
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Kristiansen-Mod 2001-10-25 05:15:13 UTC
When locating the schema for an xml file (or an import in a schema) the user-
supplied entity resolver is only called using the uri supplied as 
schemaLocation. The schema spec. (part 1 sect. 4.3.2, "Schema Representation 
Constraint: Schema Document Location Strategy") states optional ways to use 
namespace name and schemaLocation to locate schemas. While optional, isn't 
namespace name the natural way to go? At least to be tried, and preferebly 
tried before schemaLocation. As I understand it, the schemaLocation attribute 
is (in addition to being quite a stupid contruct) only a hint to where to find 
a schema.

  In a system where schemas are stored in a repository (DB or in-memory) 
namespace name is the (only) natural key as it is unique. Also, if incoming 
messages in a system are to be checked to conform to a set of known schemas, 
the schemaLocation is of little use (and validating a message against a schema 
fetched from a location given by it's sender of course says nothing about it's 
validity against the intended set of schemas).