| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- Schema test for invalid XSD 1.0 models: UPA violations that involve wildcards and elements. --> |
| 3 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 4 |
targetNamespace="http://xmlschema.test/ns" |
| 5 |
xmlns="http://xmlschema.test/ns" |
| 6 |
xmlns:other-ns="http://xmlschema.test/other-ns"> |
| 7 |
|
| 8 |
<xs:import namespace='http://xmlschema.test/other-ns' schemaLocation='other-ns.xsd'/> |
| 9 |
|
| 10 |
<xs:element name="elem0" type="xs:string"/> |
| 11 |
|
| 12 |
<!-- UPA violation (any with minOccurs < maxOccurs and ambiguity with elem0 validation) --> |
| 13 |
<xs:element name='elem1'> |
| 14 |
<xs:complexType> |
| 15 |
<xs:sequence> |
| 16 |
<xs:any namespace='##targetNamespace' minOccurs='0'/> |
| 17 |
<xs:element ref='elem0'/> |
| 18 |
</xs:sequence> |
| 19 |
</xs:complexType> |
| 20 |
</xs:element> |
| 21 |
|
| 22 |
<!-- UPA violation (any and elem0 overlap and choice model) --> |
| 23 |
<xs:element name='elem2'> |
| 24 |
<xs:complexType> |
| 25 |
<xs:choice> |
| 26 |
<xs:any namespace='##targetNamespace'/> |
| 27 |
<xs:element ref='elem0'/> |
| 28 |
</xs:choice> |
| 29 |
</xs:complexType> |
| 30 |
</xs:element> |
| 31 |
|
| 32 |
<!-- UPA violation (any with minOccurs < maxOccurs and ambiguity with other-ns:elem0) --> |
| 33 |
<xs:element name='elem3'> |
| 34 |
<xs:complexType> |
| 35 |
<xs:sequence> |
| 36 |
<xs:any namespace='##other' minOccurs='0'/> |
| 37 |
<xs:element ref='other-ns:elem0'/> |
| 38 |
</xs:sequence> |
| 39 |
</xs:complexType> |
| 40 |
</xs:element> |
| 41 |
|
| 42 |
</xs:schema> |