summaryrefslogtreecommitdiff
path: root/XQTS/TestSources/simpleContent.xsd
blob: 7e15c7fbad2e4333979a4004788d0273158b4cad (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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:ss="http://www.w3.org/query-test/complexSimple"
           targetNamespace="http://www.w3.org/query-test/complexSimple"
           elementFormDefault="qualified">


<xs:complexType name="complexExtendsSimple">
  <xs:annotation>
    <xs:documentation>
    A complex type that extends a simple base
    </xs:documentation>
  </xs:annotation>
  <xs:simpleContent>
    <xs:extension base="xs:integer"/>
  </xs:simpleContent>
</xs:complexType>

<xs:complexType name="emptyMixed" mixed="true">
  <xs:annotation>
    <xs:documentation>
    A complex type that is mixed but with no content model.
    </xs:documentation>
  </xs:annotation>
  <xs:sequence/>
</xs:complexType>

<xs:simpleType name="unionBase">
  <xs:union memberTypes="xs:boolean xs:integer"/>
</xs:simpleType>

<xs:complexType name="complexExtendsUnion">
  <xs:annotation>
    <xs:documentation>
    A complex type that extends a simple union type base
    </xs:documentation>
  </xs:annotation>
  <xs:simpleContent>
    <xs:extension base="ss:unionBase"/>
  </xs:simpleContent>
</xs:complexType>

<xs:simpleType name="listBase">
  <xs:list itemType="xs:integer"/>
</xs:simpleType>

<xs:complexType name="complexExtendsList">
  <xs:annotation>
    <xs:documentation>
    A complex type that extends a simple list type base
    </xs:documentation>
  </xs:annotation>
  <xs:simpleContent>
    <xs:extension base="ss:listBase"/>
  </xs:simpleContent>
</xs:complexType>

<xs:element name="complexExtendsSimple" type="ss:complexExtendsSimple"/>
<xs:element name="emptyMixed" type="ss:emptyMixed"/>
<xs:element name="unionBase" type="ss:unionBase"/>
<xs:element name="complexExtendsUnion" type="ss:complexExtendsUnion"/>
<xs:element name="listBase" type="ss:listBase"/>
<xs:element name="complexExtendsList" type="ss:complexExtendsList"/>

</xs:schema>