You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2006/06/26 06:01:35 UTC

svn commit: r417123 - /xerces/java/trunk/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java

Author: mrglavas
Date: Sun Jun 25 21:01:34 2006
New Revision: 417123

URL: http://svn.apache.org/viewvc?rev=417123&view=rev
Log:
Report src-import.1.2 when no namespace is specified on an 
import and the enclosing schema has no target namespace.

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=417123&r1=417122&r2=417123&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 Sun Jun 25 21:01:34 2006
@@ -834,7 +834,8 @@
                     schemaNamespace = fSymbolTable.addSymbol(schemaNamespace);
                 // a document can't import another document with the same namespace
                 if (schemaNamespace == currSchemaInfo.fTargetNamespace) {
-                    reportSchemaError("src-import.1.1", new Object [] {schemaNamespace}, child);
+                    reportSchemaError(schemaNamespace != null ? 
+                            "src-import.1.1" : "src-import.1.2", new Object [] {schemaNamespace}, child);
                 }
                 
                 // check contents and process optional annotations



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org