Author: mukulg Date: Thu Jun 28 10:21:00 2018 New Revision: 1834592 URL: http://svn.apache.org/viewvc?rev=1834592&view=rev Log: committing fix for the issue XERCESJ-1698
Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java?rev=1834592&r1=1834591&r2=1834592&view=diff ============================================================================== --- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java (original) +++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java Thu Jun 28 10:21:00 2018 @@ -184,7 +184,7 @@ class XSDAttributeTraverser extends XSDA // 5 If fixed and use are both present, use must not have the actual value prohibited if (consType == XSConstants.VC_FIXED && - useAtt != null && useAtt.intValue() == SchemaSymbols.USE_PROHIBITED) { + useAtt != null && useAtt.intValue() == SchemaSymbols.USE_PROHIBITED && fSchemaHandler.fSchemaVersion == Constants.SCHEMA_VERSION_1_1) { reportSchemaError("src-attribute.5", new Object[]{nameAtt}, attrDecl); // Recover by honouring the default value attrUse.fUse = SchemaSymbols.USE_OPTIONAL; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@xerces.apache.org For additional commands, e-mail: commits-h...@xerces.apache.org