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 "Boris Kolpackov (JIRA)" <xe...@xml.apache.org> on 2008/02/19 16:44:43 UTC

[jira] Resolved: (XERCESC-1524) Xerces fails to validate a valid XML document when the schema contains "forward references" to element-types in certain circumstances.

     [ https://issues.apache.org/jira/browse/XERCESC-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boris Kolpackov resolved XERCESC-1524.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.8.0

Appears to be fixed in 2.8.0 and trunk (3.0.0).

> 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org