DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17314>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17314

XMLGrammarPool operation





------- Additional Comments From [EMAIL PROTECTED]  2003-02-26 15:53 -------
> operation of the grammar bucket does not match with XML Schema specs.

Please refer to [1]. The spec allows processors to do any combination of 5 
things, in any order. Xerces chooses to do 3 then 4. So it does match with the 
spec. The reason we decided to do this is simple: the target namespace is the 
identity of a schema; while the location HINT isn't. A schema will always have 
the same target namespace; but its location might change. This is similar to 
Java: you always import the name of a class, but never a location of a ".class" 
file. It's up to the class loader to decide where to find the physical class 
files. If there are 2 class files for the same class, only one will be loaded.

[1] http://www.w3.org/TR/xmlschema-1/#schema_reference

> when I used the <include > tag to reference another schema with the same
> namespace; it did not load the new schema, 

This doesn't sound right. Could you be more specific about what you did and 
what you saw? If A includes B, when A's loaded, B's always loaded.

> so it hashes on the schemaLocation hint

But your problem can easily be solved without such change. If you want to use 
multiple schema documents with the same target namespace, make a root schema 
that includes all the other schema documents, and only <import> this root one 
whenever you need that namespace.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to