Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7.0
-
None
-
msvc6 / win2k
Description
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.