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

<!--

file      : examples/cxx/parser/mixin/schema.xsd
author    : Boris Kolpackov <boris@codesynthesis.com>
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>