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 (Schema) (Xerces 1.5 or up only)
Affects Versions: 2.7.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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]