summaryrefslogtreecommitdiff
path: root/tests/cxx/tree/enumeration/inheritance/test.xsd
blob: cf2eeb10dc57186ed7956f6833463f78fb5c7bca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <simpleType name="side">
    <restriction base="string">
      <enumeration value="top"/>
      <enumeration value="left"/>
      <enumeration value="bottom"/>
      <enumeration value="right"/>
    </restriction>
  </simpleType>

  <simpleType name="top-bottom">
    <restriction base="t:side">
      <enumeration value="top"/>
      <enumeration value="bottom"/>
    </restriction>
  </simpleType>

  <element name="root" type="t:top-bottom"/>

</schema>