summaryrefslogtreecommitdiff
path: root/libxsd-frontend/tests/schema/union/test-001.xsd
blob: 00fd8ce5c7052b0be06ac775dac95771e21442f3 (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">

  <!-- Test resolution of anonymous argument types. -->

  <simpleType name="list">
    <list>
      <simpleType>
        <union memberTypes="int t:enum"/>
      </simpleType>
    </list>
  </simpleType>

  <simpleType name="enum">
    <restriction base="string">
      <enumeration value="male"/>
      <enumeration value="female"/>
    </restriction>
  </simpleType>

</schema>