aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/tree/polymorphism/comparison/test.xsd
blob: 18532f2805fc3e4483e6c1a330ea7674951d8ffa (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
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <complexType name="base">
    <sequence>
      <element name="a" type="string"/>
      <element name="fund" type="int"/>
    </sequence>
  </complexType>

  <complexType name="derived1">
    <complexContent>
      <extension base="t:base">
        <sequence>
          <element name="b" type="string" minOccurs="0"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <complexType name="derived2">
    <complexContent>
      <extension base="t:base">
        <sequence>
          <element name="c" type="string" maxOccurs="unbounded"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <complexType name="type">
    <sequence>
      <element name="base" type="t:base"/>
    </sequence>
  </complexType>

  <element name="root" type="t:type"/>

</schema>