| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- Schema test for invalid model restriction (issue 344): |
| 3 |
occurrence violation for XSD 1.0, not emptiable particle for XSD 1.1. --> |
| 4 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
| 5 |
|
| 6 |
<xs:complexType name="baseType1"> |
| 7 |
<xs:sequence> |
| 8 |
<xs:element name="elem1" /> |
| 9 |
<xs:sequence minOccurs="0" maxOccurs="unbounded"> |
| 10 |
<xs:element name="elem2" type="xs:string" /> |
| 11 |
<xs:element name="elem3" type="xs:string" /> |
| 12 |
</xs:sequence> |
| 13 |
</xs:sequence> |
| 14 |
</xs:complexType> |
| 15 |
|
| 16 |
<xs:complexType name="restrictedType1"> |
| 17 |
<xs:complexContent> |
| 18 |
<xs:restriction base="baseType1"> |
| 19 |
<xs:sequence minOccurs="0" maxOccurs="unbounded"> |
| 20 |
<xs:element name="elem2" type="xs:string" /> |
| 21 |
<xs:element name="elem3" type="xs:string" /> |
| 22 |
</xs:sequence> |
| 23 |
</xs:restriction> |
| 24 |
</xs:complexContent> |
| 25 |
</xs:complexType> |
| 26 |
|
| 27 |
</xs:schema> |