aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/tree/polymorphism/ostream/test.xsd
blob: ddeaeae42f9112ad13d8a8a0bb8c6ded4eae9f2c (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
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test"
        targetNamespace="test" elementFormDefault="qualified">

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

  <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>

  <element name="derived3" substitutionGroup="t:base">
    <complexType>
      <complexContent>
        <extension base="t:base">
          <sequence>
            <element name="d" type="string" maxOccurs="unbounded"/>
          </sequence>
        </extension>
      </complexContent>
    </complexType>
  </element>

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

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

</schema>