summaryrefslogtreecommitdiff
path: root/libxsd-frontend/tests/schema/union/test-000.xsd
blob: 99535dee139d284a8526e89756450b2895743a17 (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
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <simpleType name="u1">
    <union memberTypes="int string"/>
  </simpleType>

  <simpleType name="u2">
    <union>
      <simpleType>
        <restriction base="token">
          <enumeration value="one"/>
        </restriction>
      </simpleType>
      <simpleType>
        <restriction base="string">
          <enumeration value="two"/>
        </restriction>
      </simpleType>
    </union>
  </simpleType>

  <simpleType name="u3">
    <union memberTypes="  int

t:u1 ">
      <simpleType>
        <restriction base="token">
          <enumeration value="one"/>
        </restriction>
      </simpleType>
      <simpleType>
        <restriction base="string">
          <enumeration value="two"/>
        </restriction>
      </simpleType>
    </union>
  </simpleType>

</schema>