summaryrefslogtreecommitdiff
path: root/xsd/examples/cxx/parser/mixin/schema.xsd
blob: d2d195dc4bc822bc0dc8b37b78ab6afcf58cd1ab (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
<?xml version="1.0"?>

<!--

file      : examples/cxx/parser/mixin/schema.xsd
copyright : not copyrighted - public domain

-->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <xsd:complexType name="base">
    <xsd:sequence>
      <xsd:element name="a" type="xsd:boolean"/>
    </xsd:sequence>
  </xsd:complexType>

  <xsd:complexType name="derived">
    <xsd:complexContent>
      <xsd:extension base="base">
        <xsd:sequence>
          <xsd:element name="b" type="xsd:int"/>
        </xsd:sequence>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>

  <xsd:element name="root" type="derived"/>

</xsd:schema>