-
Notifications
You must be signed in to change notification settings - Fork 17
/
standard_names_v1_0.xsd
83 lines (68 loc) · 2.66 KB
/
standard_names_v1_0.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
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xs:schema elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- identifier types -->
<xs:simpleType name="standard_name_type">
<xs:restriction base="xs:string">
<xs:pattern value="[a-z][a-z0-9_]*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="type_type">
<xs:restriction base="xs:string">
<xs:pattern value="[iI][nN][tT][eE][gG][eE][rR]"/>
<xs:pattern value="[rR][eE][aA][lL]"/>
<xs:pattern value="[lL][oO][gG][iI][cC][aA][lL]"/>
<xs:pattern value="[cC][hH][aA][rR][aA][cC][tT][eE][rR]"/>
<xs:pattern value="[dD][oO][uU][bB][lL][eE][ ]*[pP][rR][eE][cC][iI][sS][iI][oO][nN]"/>
<xs:pattern value="[cC][oO][mM][pP][lL][eE][xX]"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="version_type">
<xs:restriction base="xs:string">
<xs:pattern value="[1-9][0-9]*[.][0-9]+"/>
</xs:restriction>
</xs:simpleType>
<!-- attributes -->
<xs:attribute name="comment" type="xs:string"/>
<xs:attribute name="long_name" type="xs:string"/>
<xs:attribute name="kind" type="xs:string"/>
<xs:attribute name="name" type="standard_name_type"/>
<xs:attribute name="units" type="xs:string"/>
<xs:attribute name="version" type="version_type"/>
<!-- definition of complex types -->
<xs:complexType name="md_type">
<xs:simpleContent>
<xs:extension base="type_type">
<xs:attribute ref="kind" use="optional"/>
<xs:attribute ref="units" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="stdname_type">
<xs:sequence>
<xs:element name="type" type="md_type"/>
</xs:sequence>
<xs:attribute ref="name" use="required"/>
<xs:attribute ref="long_name" use="optional"/>
</xs:complexType>
<xs:complexType name="section_type">
<xs:sequence>
<xs:element name="standard_name" type="stdname_type"
minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="name" use="required"/>
<xs:attribute ref="comment" use="optional"/>
</xs:complexType>
<!-- definition of elements -->
<xs:element name="section" type="section_type">
</xs:element>
<xs:element name="standard_names">
<xs:complexType>
<xs:sequence>
<xs:element ref="section" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="version" type="version_type" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>