Author: sandygao
Date: Mon May 30 19:54:49 2011
New Revision: 1129329
URL: http://svn.apache.org/viewvc?rev=1129329&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/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=1129329&r1=1129328&r2=1129329&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
Mon May 30 19:54:49 2011
@@ -2611,7 +2611,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]