summaryrefslogtreecommitdiff
path: root/libxsd-frontend/tests/schema/anonymous/test-001.xsd
blob: 4a8414f1ebce5773e1f885c4be6d7bafe2f4ff79 (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
41
42
43
44
45
46
47
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

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

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

  <simpleType name="anon">
    <restriction>
      <simpleType>
        <restriction base="string">
          <maxLength value="20"/>
        </restriction>
      </simpleType>
      <enumeration value="male"/>
      <enumeration value="female"/>
    </restriction>
  </simpleType>

  <simpleType name="anon_nested">
    <restriction>
      <simpleType>
        <restriction>
          <simpleType>
            <restriction base="string">
              <maxLength value="40"/>
            </restriction>
          </simpleType>
          <maxLength value="20"/>
        </restriction>
      </simpleType>
      <enumeration value="male"/>
      <enumeration value="female"/>
    </restriction>
  </simpleType>

</schema>