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

Boris Kolpackov updated XERCESC-1715:
-------------------------------------

    Affects Version/s:     (was: 2.7.0)
                       3.1.0

Still present in the 3.1.0 codebase. Xerces-J 2.9.1 appears to have the same 
problem.

> xereces-c allows a restricted type to have mixed content,  where the content 
> type of the base is not.
> -----------------------------------------------------------------------------------------------------
>
>                 Key: XERCESC-1715
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1715
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 3.1.0
>            Reporter: Christian Will
>
> Hi there,
> xereces-c allows a restricted type to have mixed content,  where the content 
> type of the base is not.
> sample:
> <?xml version="1.0"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>       <xsd:complexType name="A">
>               <xsd:choice minOccurs="0" maxOccurs="4">
>                       <xsd:group ref="x"/>
>                       <xsd:group ref="y"/>
>               </xsd:choice>
>       </xsd:complexType>
>       <xsd:group name="x">
>               <xsd:sequence>
>                       <xsd:element name="x1"/>
>                       <xsd:element name="x2"/>
>               </xsd:sequence>
>       </xsd:group>
>       <xsd:group name="y">
>               <xsd:choice>
>                       <xsd:element name="y1"/>
>                       <xsd:element name="y2"/>
>               </xsd:choice>
>       </xsd:group>
>       <xsd:group name="G">
>               <xsd:choice>
>                       <xsd:group ref="x"/>
>                       <xsd:group ref="y"/>
>               </xsd:choice>
>       </xsd:group>
>       <xsd:element name="elem">
>               <xsd:complexType mixed="true">
>                       <xsd:complexContent>
>                               <xsd:restriction base="A">
>                                       <xsd:group ref="G" minOccurs="0" 
> maxOccurs="0"/>
>                               </xsd:restriction>
>                       </xsd:complexContent>
>               </xsd:complexType>
>       </xsd:element>
> </xsd:schema>
> Regards,
> Christian Will

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

Reply via email to