[ https://issues.apache.org/jira/browse/XERCESC-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov closed XERCESC-1524. ------------------------------------ > Xerces fails to validate a valid XML document when the schema contains > "forward references" to element-types in certain circumstances. > -------------------------------------------------------------------------------------------------------------------------------------- > > Key: XERCESC-1524 > URL: https://issues.apache.org/jira/browse/XERCESC-1524 > Project: Xerces-C++ > Issue Type: Bug > Components: Validating Parser (Schema) (Xerces 1.5 or up only) > Affects Versions: 2.7.0 > Environment: msvc6 / win2k > Reporter: Alain Le Guennec > Fix For: 2.8.0 > > Attachments: BugValidationSchema.xml, BugValidationSchema.xsd > > > When running "sax2print BugValidationSchema.xml" (xml file attached), I get > the following error: > Message: Attribute 'attr2' is not declared for element 'Level4' > The schema (also attached) simply contains 4 element/element-types > declarations > ('Level1', 'Level2', 'Level3' and 'Level4', forming an extension chain). > Attribute 'attr2' is declared within 'Level2', and so should be legal within > Level4 too. > 'Level2' also contains a sub-element declaration of type 'Level4'. > It turns out that commenting out that sub-element declaration renders the xml > file valid. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]