aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/parser/polymorphism/same-type/test.xsd
blob: a4157d33f77cc8d73806481dddf761ad18d6ee97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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"/>
    </sequence>
  </complexType>

  <element name="base" type="t:base"/>
  <element name="derived" type="t:base" substitutionGroup="t:base"/>

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

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

</schema>