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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to