Blame view

config/xsd/request/download.xsd 3.23 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
    <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">
4b8aea7e   Benjamin Renard   Fix to replace 'D...
24
							<xs:enumeration value="DOYTIME"></xs:enumeration>
fbe3c2bb   Benjamin Renard   First commit
25
26
							<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>
5a693c10   Erdogan Furkan   For now
29
30
31
							<xs:enumeration value="EPOCH"></xs:enumeration>
							<xs:enumeration value="EPOCH16"></xs:enumeration>
							<xs:enumeration value="TT2000"></xs:enumeration>
fbe3c2bb   Benjamin Renard   First commit
32
33
34
35
36
37
38
39
40
						</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>
9e1bbe22   Benjamin Renard   Skeleton to imple...
41
							<xs:enumeration value="CDF_ISTP"></xs:enumeration>
fbe3c2bb   Benjamin Renard   First commit
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
							<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...
60
61
62
63
64
65
66
67
				    <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
68
69
70
71
72
73
74
				<xs:element ref="PostProcessingElement" minOccurs="0" maxOccurs="1"/>
			</xs:sequence>
            <xs:attribute name="precision" type="xs:string" />
		</xs:complexType>
	</xs:element>
	
</xs:schema>