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/07/17 16:39:32 UTC

[jira] Closed: (XERCESC-821) XMLSchema validator allows mixed content in complex type definitions

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

Boris Kolpackov closed XERCESC-821.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.8.0

Works with 2.8.0 and current 3.0.0.

> XMLSchema validator allows mixed content in complex type definitions
> --------------------------------------------------------------------
>
>                 Key: XERCESC-821
>                 URL: https://issues.apache.org/jira/browse/XERCESC-821
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 2.2.0
>         Environment: Operating System: Windows XP
> Platform: PC
>            Reporter: Alberto Massari
>            Assignee: Khaled Noaman
>             Fix For: 2.8.0
>
>         Attachments: test.xml, test.xsd
>
>
> According to the Appendix A of the spec, a complex type definition does not 
> allow, by default, mixed content
> ...
> <xs:complexType name="complexType" abstract="true">
>   <xs:complexContent>
>    <xs:extension base="xs:annotated">
>     <xs:group ref="xs:complexTypeModel"/>
>      ...
>     <xs:attribute name="mixed" type="xs:boolean" use="optional" 
> default="false">
>     ...
>  </xs:complexType>
> And only appinfo, documentation and anyType are marked as allowing mixed 
> content. Given this, I think that Xerces is wrong when it doesn't signal an 
> error validating the attached files.
> Alberto

-- 
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