summaryrefslogtreecommitdiff
path: root/libxsd-frontend/tests/schema/annotation/test-000.xsd
blob: f768b451b2001c06dcac5d787264c2ea1f9a9dac (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <annotation>
    <documentation>schema documentation</documentation>
  </annotation>

  <simpleType name="list">
    <annotation>
      <documentation>list type documentation</documentation>
    </annotation>
    <list itemType="string"/>
  </simpleType>

  <simpleType name="union">
    <annotation>
      <documentation>union type documentation</documentation>
    </annotation>
    <union memberTypes="int string"/>
  </simpleType>

  <simpleType name="enum">
    <annotation>
      <documentation>enumeration type documentation</documentation>
    </annotation>
    <restriction base="string">
      <enumeration value="male">
        <annotation>
          <documentation>enumerator documentation (male)</documentation>
        </annotation>
      </enumeration>
      <enumeration value="female">
        <annotation>
          <documentation>enumerator documentation (female)</documentation>
        </annotation>
      </enumeration>
    </restriction>
  </simpleType>

  <complexType name="type">
    <annotation>
      <documentation>complex type documentation</documentation>
    </annotation>
    <sequence>
      <element name="efoo" type="string">
        <annotation>
          <documentation>local element efoo documentation</documentation>
        </annotation>
      </element>
      <element name="ebar">
        <annotation>
          <documentation>local element ebar documentation</documentation>
        </annotation>
        <complexType>
          <sequence>
            <element name="efoo" type="string">
              <annotation>
                <documentation>nested local element efoo documentation</documentation>
              </annotation>
            </element>
          </sequence>
          <attribute name="afoo" type="string">
            <annotation>
              <documentation>nested local attribute afoo documentation</documentation>
            </annotation>
          </attribute>
        </complexType>
      </element>
      <element ref="t:ebaz">
        <annotation>
          <documentation>local element ebaz documentation</documentation>
        </annotation>
      </element>
      <any namespace="##other">
        <annotation>
          <documentation>any documentation</documentation>
        </annotation>
      </any>
    </sequence>
    <attribute name="afoo" type="string">
      <annotation>
        <documentation>local attribute afoo documentation</documentation>
      </annotation>
    </attribute>
    <attribute name="abar">
      <annotation>
        <documentation>local attribute abar documentation</documentation>
      </annotation>
      <simpleType>
        <annotation>
          <documentation>list type documentation</documentation>
        </annotation>
        <list itemType="string"/>
      </simpleType>
    </attribute>
    <attribute ref="t:abaz">
      <annotation>
        <documentation>local attribute abaz documentation</documentation>
      </annotation>
    </attribute>
    <anyAttribute namespace="##other">
      <annotation>
        <documentation>anyAttribute documentation</documentation>
      </annotation>
    </anyAttribute>
  </complexType>

  <element name="ebaz" type="string">
    <annotation>
      <documentation>global element documentation</documentation>
    </annotation>
  </element>

  <attribute name="abaz" type="string">
    <annotation>
      <documentation>global attribute documentation</documentation>
    </annotation>
  </attribute>

</schema>