[ http://nagoya.apache.org/jira/browse/XERCESC-961?page=history ]
Alberto Massari updated XERCESC-961: ------------------------------------ Priority: Major > TraverseSchema::checkAttDerivationOK() incorrect for prohibited attributes > -------------------------------------------------------------------------- > > Key: XERCESC-961 > URL: http://nagoya.apache.org/jira/browse/XERCESC-961 > Project: Xerces-C++ > Type: Bug > Components: Validating Parser (Schema) (Xerces 1.5 or up only) > Versions: 2.3.0 > Environment: Operating System: All > Platform: All > Reporter: Gareth Sylvester-Bradley > Assignee: Xerces-C Developers Mailing List > > Constraints 2.1.2 and 2.1.3 do not apply if derived attribute has > use="prohibited". The correct behaviour is found in > org.apache.xerces.impl.xs.XSAttributeGroupDecl (Xerces2 Java Parser 2.4.0 > Release). > Fix (based on XSAttributeGroupDecl) is to insert following block before the > 2.1.2 check in the two versions of checkAttDerivationOK(). > > // if this attribute is prohibited in the derived type, don't > > // need to check any of the following constraints. > > if (childAttDefType == XMLAttDef::Prohibited) { > > continue; > > } > // Constraint 2.1.2 > DatatypeValidator* baseDV = baseAttDef->getDatatypeValidator(); > ... > In current HEAD (Revision 1.83) the line numbers are 7319 and 7395. > Gareth -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]