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 2013/01/13 13:11:16 UTC

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

Author: mukulg
Date: Sun Jan 13 12:11:15 2013
New Revision: 1432596

URL: http://svn.apache.org/viewvc?rev=1432596&view=rev
Log:
committing few fixes for Jira issue, 1594

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/XMLSchemaValidator.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=1432596&r1=1432595&r2=1432596&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 Jan 13 12:11:15 2013
@@ -44,7 +44,7 @@
         KeyRefOutOfScope = Identity Constraint error:  the keyref identity constraint \"{0}\" refers to a key or unique that is out of scope.
         KeyRefReferNotFound = Key reference declaration \"{0}\" refers to unknown key with name \"{1}\".
         UnknownField = Internal identity constraint error; unknown field \"{0}\" for identity constraint \"{2}\" specified for element \"{1}\".
-        KeyRefNotEnoughValues = cvc-identity-constraint.4.3.b: Not enough values specified for <keyref name=\"{1}\"> identity constraint specified for element \"{0}\". 
+        ## KeyRefNotEnoughValues = cvc-identity-constraint.4.3.b: Not enough values specified for <keyref name=\"{1}\"> identity constraint specified for element \"{0}\". 
 
 # Ideally, we should only use the following error keys, not the ones under
 # "Identity constraints". And we should cover all of the following errors.

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java?rev=1432596&r1=1432595&r2=1432596&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java Sun Jan 13 12:11:15 2013
@@ -2771,11 +2771,11 @@ public class XMLSchemaValidator
                         ValueStoreBase values =
                             fValueStoreCache.getValueStoreFor(id, selMatcher.getInitialDepth());
                         if (values != null) {    
-                            values.endDocumentFragment();   // nothing to do if nothing matched
-                            // report error if not all fields are present                       
-                            if (values.fValuesCount != values.fFieldCount) {
+                            values.endDocumentFragment();   // nothing to do if nothing matched                                         
+                            /*if (values.fValuesCount != values.fFieldCount) {
+                                // report error if not all fields are present
                                 reportSchemaError("KeyRefNotEnoughValues", new Object[] { element.rawname, values.getIdentityConstraint().getName() }); 
-                            }
+                            } */
                         }                                               
                     }
                 }



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