You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mu...@apache.org on 2010/07/25 06:02:06 UTC

svn commit: r978974 - in /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl: msg/XMLSchemaMessages.properties xs/opti/SchemaDOMParser.java

Author: mukulg
Date: Sun Jul 25 04:02:06 2010
New Revision: 978974

URL: http://svn.apache.org/viewvc?rev=978974&view=rev
Log:
reporting warning if an attribute other than vc:minVersion, vc:maxVersion, vc:typeAvailable, vc:typeUnavailable, vc:facetAvailable or vc:facetUnavailable is specified in schema document for the schema versioning namespace.

Modified:
    xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
    xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/opti/SchemaDOMParser.java

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties?rev=978974&r1=978973&r2=978974&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties Sun Jul 25 04:02:06 2010
@@ -174,7 +174,8 @@
         src-union-memberTypes-or-simpleTypes = src-union-memberTypes-or-simpleTypes: A <union> element must have either a non-empty memberTypes [attribute] or at least one <simpleType> element among its [children].
         src-type-alternative.3.12.13.1 = src-type-alternative.3.12.13.1: Type atlernative has both a ''type'' attribute and a ''anonymous type'' child. Only one of these is allowed for a type alternative.
         src-type-alternative.3.12.13.2 = src-type-alternative.3.12.13.2: Type definition missing for type atlernative. A ''type'' attribute, or a ''complexType'' child element, or a ''simpleType'' child element must be present.
-        src-wildcard.1 = src-wildcard.1: The properties ''namespace'' and ''notNamespace'' cannot both be present in a wildcard declaration. Use only one of them.        
+        src-wildcard.1 = src-wildcard.1: The properties ''namespace'' and ''notNamespace'' cannot both be present in a wildcard declaration. Use only one of them.
+        src-cip.1 = src-cip.1: The attribute ''{0}'' does not belong to schema versioning namespace (http://www.w3.org/2007/XMLSchema-versioning).          
 
 #constraint valid (3.X.6)
 

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/opti/SchemaDOMParser.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/opti/SchemaDOMParser.java?rev=978974&r1=978973&r2=978974&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/opti/SchemaDOMParser.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/opti/SchemaDOMParser.java Sun Jul 25 04:02:06 2010
@@ -601,6 +601,7 @@ public class SchemaDOMParser extends Def
         fSupportedVersion = version;
     }
     
+    
     /*
      *  Method to check if any attributes of schema versioning namespace should
      *  cause exclusion of a schema component along with it's descendant
@@ -665,8 +666,12 @@ public class SchemaDOMParser extends Def
                     facetUnavailableList = tokenizeString(attrValue, "\\s");
                 }
                 else {
-                    // throw warning. This is optional as per the spec,
-                    // but highly recommended. TO DO ...
+                    // report a warning
+                    fErrorReporter.reportError(fLocator, 
+                            XSMessageFormatter.SCHEMA_DOMAIN,
+                            "src-cip.1",
+                            new Object[]{ attrLocalName },
+                            XMLErrorReporter.SEVERITY_WARNING);
                 }
             }
             



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