Blame view

config/xsd/request/download.xsd 3.01 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:include schemaLocation="request.xsd" />	
	
	<xs:element name="PostProcessingElement" abstract="true" />	
4f3abe6a   Benjamin Renard   Give the possibil...
7
8
9
10
11
12
13
14
15
16

	<xs:simpleType name="OutputStructureDownloadType">
            <xs:restriction base="xs:string">
                <xs:enumeration value="one-file" />
                <xs:enumeration value="one-file-refparam" />
                <xs:enumeration value="one-file-per-interval" />
                <xs:enumeration value="one-file-per-interval-refparam" />
                <xs:enumeration value="one-file-per-parameter-per-interval" />
            </xs:restriction>
        </xs:simpleType>
fbe3c2bb   Benjamin Renard   First commit
17
18
19
20
21
22
23
24
25
26
    <xs:element name="download" substitutionGroup="OutputElement" >
		<xs:complexType>
			<xs:sequence>
				<xs:element name="timeFormat" minOccurs="0"
					maxOccurs="1">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="DD"></xs:enumeration>
							<xs:enumeration value="ISO"></xs:enumeration>
							<xs:enumeration value="DOUBLE"></xs:enumeration>
31dbec88   Benjamin Renard   date spaces ok
27
28
							<xs:enumeration value="MS"></xs:enumeration>
							<xs:enumeration value="SPACES"></xs:enumeration>
fbe3c2bb   Benjamin Renard   First commit
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
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="fileFormat" minOccurs="0"
					maxOccurs="1">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="ASCII"></xs:enumeration>
							<xs:enumeration value="CDF"></xs:enumeration>
							<xs:enumeration value="NETCDF"></xs:enumeration>
							<xs:enumeration value="JSON"></xs:enumeration>
							<xs:enumeration value="VOT"></xs:enumeration>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="fileName" type="xs:string" minOccurs="0" maxOccurs="1"/>
				<xs:element name="param" minOccurs="1" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="index" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
							<xs:element name="calibration_info" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
						</xs:sequence>
						<xs:attribute name="id" type="xs:string"  use="required"/>
					</xs:complexType>
				</xs:element>
				<xs:element name="timeResolution" minOccurs="0" maxOccurs="1"/>
				<xs:element name="outputStructure" minOccurs="0" maxOccurs="1">
4f3abe6a   Benjamin Renard   Give the possibil...
56
57
58
59
60
61
62
63
				    <xs:complexType>
                                        <xs:simpleContent>
                                            <xs:extension base="OutputStructureDownloadType">
                                                <xs:attribute default="false" name="separateInfoFile" type="xs:boolean"/>
                                            </xs:extension>
                                        </xs:simpleContent>
                                    </xs:complexType>
                                </xs:element>
fbe3c2bb   Benjamin Renard   First commit
64
65
66
67
68
69
70
				<xs:element ref="PostProcessingElement" minOccurs="0" maxOccurs="1"/>
			</xs:sequence>
            <xs:attribute name="precision" type="xs:string" />
		</xs:complexType>
	</xs:element>
	
</xs:schema>