Author: mrglavas
Date: Mon Nov 24 10:56:02 2008
New Revision: 720256

URL: http://svn.apache.org/viewvc?rev=720256&view=rev
Log:
Fixing a bug in the support for the "honour-all-schemaLocations" feature. 
Before processing
additional imports for the same namespace we check if we have already loaded 
the schema
document pointed to by the schemaLocation. If we have we do not load it again. 
Unfortunately
this didn't work because we were never setting the literal system identifier on 
the grammar
description.

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java

Modified: 
xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java?rev=720256&r1=720255&r2=720256&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java 
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java 
Mon Nov 24 10:56:02 2008
@@ -846,6 +846,7 @@
                 fSchemaGrammarDescription.reset();
                 
fSchemaGrammarDescription.setContextType(XSDDescription.CONTEXT_IMPORT);
                 
fSchemaGrammarDescription.setBaseSystemId(doc2SystemId(schemaRoot));
+                fSchemaGrammarDescription.setLiteralSystemId(schemaHint);
                 fSchemaGrammarDescription.setLocationHints(new 
String[]{schemaHint});
                 fSchemaGrammarDescription.setTargetNamespace(schemaNamespace);
                 



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

Reply via email to