You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Alberto Massari (JIRA)" <xe...@xml.apache.org> on 2009/08/10 16:40:14 UTC
[jira] Resolved: (XERCESC-961)
TraverseSchema::checkAttDerivationOK() incorrect for prohibited attributes
[ https://issues.apache.org/jira/browse/XERCESC-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alberto Massari resolved XERCESC-961.
-------------------------------------
Resolution: Fixed
Fix Version/s: 3.1.0
Assignee: Alberto Massari (was: Xerces-C Developers Mailing List)
Fix is in SVN.
Thanks,
Alberto
> TraverseSchema::checkAttDerivationOK() incorrect for prohibited attributes
> --------------------------------------------------------------------------
>
> Key: XERCESC-961
> URL: https://issues.apache.org/jira/browse/XERCESC-961
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: 2.3.0
> Environment: Operating System: All
> Platform: All
> Reporter: Gareth Sylvester-Bradley
> Assignee: Alberto Massari
> Fix For: 3.1.0
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org