]> Wikimedia Canada | Git repositories - eccc_schema.git/blob - bulkschema.xsd
Add historical climate data validation schema
[eccc_schema.git] / bulkschema.xsd
1 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2 <xsd:element name="climatedata">
3 <xsd:complexType>
4 <xsd:sequence>
5 <xsd:element name="lang">
6 <xsd:simpleType>
7 <xsd:restriction base="xsd:string">
8 <xsd:enumeration value="ENG"/>
9 <xsd:enumeration value="FRE"/>
10 </xsd:restriction>
11 </xsd:simpleType>
12 </xsd:element>
13 <xsd:element name="legend">
14 <xsd:complexType>
15 <xsd:sequence>
16 <xsd:element name="flag">
17 <xsd:complexType>
18 <xsd:sequence>
19 <xsd:element name="symbol"/>
20 <xsd:element name="description"/>
21 </xsd:sequence>
22 </xsd:complexType>
23 </xsd:element>
24 </xsd:sequence>
25 </xsd:complexType>
26 </xsd:element>
27 <xsd:element name="stationinformation">
28 <xsd:complexType>
29 <xsd:sequence>
30 <xsd:element name="name" type="xsd:string"/>
31 <xsd:element name="province" type="xsd:string"/>
32 <xsd:element name="latitude" type="xsd:integer"/>
33 <xsd:element name="longitude" type="xsd:integer"/>
34 <xsd:element name="elevation" type="xsd:integer"/>
35 <xsd:element name="climate_identifier" type="xsd:integer"/>
36 <xsd:element name="wmo_identifier" type="xsd:integer"/>
37 <xsd:element name="tc_identifier" type="xsd:string"/>
38 </xsd:sequence>
39 </xsd:complexType>
40 </xsd:element>
41 <xsd:element name="stationdata">
42 <xsd:complexType>
43 <xsd:sequence>
44 <xsd:element name="meanmaxtemp" type="xsd:string"/>
45 <xsd:element name="meanmintemp" type="xsd:string"/>
46 <xsd:element name="meanmonthtemp" type="xsd:string"/>
47 <xsd:element name="extrmaxtemp" type="xsd:string"/>
48 <xsd:element name="extrmintemp" type="xsd:string"/>
49 <xsd:element name="totrain" type="xsd:string"/>
50 <xsd:element name="totsnow" type="xsd:string"/>
51 <xsd:element name="snowonground" type="xsd:string"/>
52 <xsd:element name="totprecip" type="xsd:string"/>
53 <xsd:element name="grndsnowlastday" type="xsd:string"/>
54 <xsd:element name="dirmaxgust" type="xsd:string"/>
55 <xsd:element name="speedmaxgust" type="xsd:string"/>
56 </xsd:sequence>
57 <xsd:attribute name="day" type="xsd:string" use="required"/>
58 <xsd:attribute name="month" type="xsd:string" use="required"/>
59 <xsd:attribute name="year" type="xsd:string" use="required"/>
60 </xsd:complexType>
61 </xsd:element>
62 </xsd:sequence>
63 </xsd:complexType>
64 </xsd:element>
65 </xsd:schema>