summaryrefslogtreecommitdiff
path: root/tests/code/name-conflict/test.xsd
blob: a017cc8fe66398be79d9b9fa20c03798138aad5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <xsd:simpleType name="enumeration">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="enumeration"/>
      <xsd:enumeration value="enumeration1"/>
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:element name="enumeration" type="enumeration"/>

  <xsd:complexType name="complex">
    <xsd:sequence>
      <xsd:element name="complex" type="xsd:string"/>
      <xsd:element name="complex1" type="xsd:string"/>
      <xsd:element name="type" type="xsd:string"/>
      <xsd:element name="container" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
  </xsd:complexType>

  <xsd:element name="complex" type="complex"/>

  <xsd:complexType name="anonymous">
    <xsd:sequence>
      <xsd:element name="anonymous">
        <xsd:complexType> <!-- this is really twisted -->
          <xsd:sequence>
            <xsd:element name="anonymous2" type="xsd:string"/>
            <xsd:element name="anonymous21" type="xsd:string"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="anonymous1" type="xsd:string"/>
    </xsd:sequence>
  </xsd:complexType>

  <xsd:element name="anonymous" type="anonymous"/>

</xsd:schema>