Author: sandygao
Date: Mon May 30 19:54:26 2011
New Revision: 1129328
URL: http://svn.apache.org/viewvc?rev=1129328&view=rev
Log:
Fixing Jira bug XERCESJ-1515
(https://issues.apache.org/jira/browse/XERCESJ-1515), to only look for a key
when the keyref has complete field values.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java?rev=1129328&r1=1129327&r2=1129328&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java Mon
May 30 19:54:26 2011
@@ -2439,7 +2439,9 @@ public class XMLSchemaValidator
&& id.getCategory() ==
IdentityConstraint.IC_KEYREF) {
ValueStoreBase values =
fValueStoreCache.getValueStoreFor(id,
selMatcher.getInitialDepth());
- if (values != null) // nothing to do if nothing
matched!
+ // 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]