Author: mukulg
Date: Mon Nov 11 10:01:59 2019
New Revision: 1869653
URL: http://svn.apache.org/viewvc?rev=1869653&view=rev
Log:
reverting changes to the previous commit of this file. i'm little unsure about
the general correctness of the change I did.
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDAbstractIDConstraintTraverser.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDAbstractIDConstraintTraverser.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDAbstractIDConstraintTraverser.java?rev=1869653&r1=1869652&r2=1869653&view=diff
==============================================================================
---
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDAbstractIDConstraintTraverser.java
(original)
+++
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDAbstractIDConstraintTraverser.java
Mon Nov 11 10:01:59 2019
@@ -209,14 +209,11 @@ class XSDAbstractIDConstraintTraverser e
Object[] attrValues = fAttrChecker.checkAttributes(icElem, false,
schemaDoc);
QName referredIcQName =
(QName)attrValues[XSAttributeChecker.ATTIDX_REF];
- IdentityConstraint referredIc = null;
- if (referredIcQName != null) {
- referredIc =
(IdentityConstraint)fSchemaHandler.getGlobalDecl(schemaDoc,
XSDHandler.IDENTITYCONSTRAINT_TYPE, referredIcQName, icElem);
- // TODO: If the referredIc had a problem such as the refer
attribute did not resolve to a unique/key,
- // the referredIc will not have been built but it will be
hidden.
- // When we try to get its declaration, it will display
Internal error.
- // Same thing happens when a keyref has refer attribute
which is its own name. But the internal error would be correct.
- }
+ IdentityConstraint referredIc =
(IdentityConstraint)fSchemaHandler.getGlobalDecl(schemaDoc,
XSDHandler.IDENTITYCONSTRAINT_TYPE, referredIcQName, icElem);
+ // TODO: If the referredIc had a problem such as the refer attribute
did not resolve to a unique/key,
+ // the referredIc will not have been built but it will be hidden.
+ // When we try to get its declaration, it will display Internal
error.
+ // Same thing happens when a keyref has refer attribute which is
its own name. But the internal error would be correct.
if (referredIc == null) {
fAttrChecker.returnAttrArray(attrValues, schemaDoc);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]