-
Notifications
You must be signed in to change notification settings - Fork 9
/
codelist.xsd
109 lines (101 loc) · 4.42 KB
/
codelist.xsd
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
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="xml.xsd"/>
<xs:element name="narrative">
<xs:annotation>
<xs:documentation xml:lang="en">
The free text name or description of the item being described. This can
be repeated in multiple languages.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang" use="optional">
<xs:annotation>
<xs:documentation xml:lang="en">
ISO 639-1 code specifying the language of text in this element. If a default language is specified in the iati-activity element it does not have to be repeated here.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:anyAttribute processContents="lax" namespace="##other"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:complexType name="textType">
<xs:annotation>
<xs:documentation xml:lang="en">
Data type for an element that may contain human-readable text
in different languages.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="narrative" minOccurs="0" maxOccurs="unbounded" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute processContents="lax" namespace="##other"/>
</xs:complexType>
<xs:element name="codelist-item">
<xs:complexType>
<xs:sequence>
<xs:element name="code" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="name" type="textType" minOccurs="0" maxOccurs="1" />
<xs:element name="description" type="textType" minOccurs="0" maxOccurs="1" />
<xs:element name="category" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="url" type="xs:anyURI" minOccurs="0" maxOccurs="1" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="public-database" use="optional"/>
<xs:attribute name="status" type="xs:string" use="optional"/>
<xs:attribute name="activation-date" type="xs:date" use="optional"/>
<xs:attribute name="withdrawal-date" type="xs:date" use="optional"/>
<xs:anyAttribute processContents="lax" namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="codelist-items">
<xs:complexType>
<xs:sequence>
<xs:element ref="codelist-item" minOccurs="0" maxOccurs="unbounded" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute processContents="lax" namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="codelist">
<xs:complexType>
<xs:sequence>
<xs:element name="metadata" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="textType" minOccurs="0" maxOccurs="1" />
<xs:element name="description" type="textType" minOccurs="0" maxOccurs="1" />
<xs:element name="url" type="xs:anyURI" minOccurs="0" maxOccurs="1" />
<xs:element name="category" type="textType" minOccurs="0" maxOccurs="1"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute processContents="lax" namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element ref="codelist-items" minOccurs="1" maxOccurs="1" />
</xs:sequence>
<xs:attribute name="ref" use="optional"/>
<xs:attribute name="name" use="optional"/>
<xs:attribute name="category-codelist" use="optional"/>
<xs:attribute ref="xml:lang" use="optional" />
<xs:attribute name="complete" use="optional" type="xs:boolean" />
<xs:attribute name="embedded" use="optional" type="xs:boolean" />
<xs:anyAttribute processContents="lax" namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="codelists">
<xs:complexType>
<xs:sequence>
<xs:element ref="codelist" minOccurs="0" maxOccurs="unbounded" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute processContents="lax" namespace="##other"/>
</xs:complexType>
</xs:element>
</xs:schema>