[ http://issues.apache.org/jira/browse/XERCESC-1524?page=all ]
Alain Le Guennec updated XERCESC-1524:
--------------------------------------
Attachment: BugValidationSchema.xml
BugValidationSchema.xsd
> Xerces fails to validate a valid XML document when the schema contains
> "forward references" to element-types in certain circumstances.
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: XERCESC-1524
> URL: http://issues.apache.org/jira/browse/XERCESC-1524
> Project: Xerces-C++
> Type: Bug
> Components: Validating Parser (Schema) (Xerces 1.5 or up only)
> Versions: 2.7.0
> Environment: msvc6 / win2k
> Reporter: Alain Le Guennec
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]