Author: mukulg
Date: Fri Dec 20 10:43:12 2019
New Revision: 1871850
URL: http://svn.apache.org/viewvc?rev=1871850&view=rev
Log:
replicating fix for jira issue XERCESJ-1515, from trunk to the xsd 1.1 dev
branch
Modified:
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/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=1871850&r1=1871849&r2=1871850&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
Fri Dec 20 10:43:12 2019
@@ -2003,13 +2003,10 @@ public class XMLSchemaValidator extends
&& id.getCategory() ==
IdentityConstraint.IC_KEYREF) {
ValueStoreBase values =
fValueStoreCache.getValueStoreFor(id,
selMatcher.getInitialDepth());
- if (values != null) {
- 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() });
- } */
- }
+ // nothing to do if nothing matched, or if not all
+ // fields are present.
+ if (values != null && values.fValuesCount ==
values.fFieldCount)
+ values.endDocumentFragment();
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]