download.xsd 3.01 KB
<?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" />	

	<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>
    <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="DOYTIME"></xs:enumeration>
							<xs:enumeration value="ISO"></xs:enumeration>
							<xs:enumeration value="DOUBLE"></xs:enumeration>
							<xs:enumeration value="MS"></xs:enumeration>
							<xs:enumeration value="SPACES"></xs:enumeration>
						</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">
				    <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>
				<xs:element ref="PostProcessingElement" minOccurs="0" maxOccurs="1"/>
			</xs:sequence>
            <xs:attribute name="precision" type="xs:string" />
		</xs:complexType>
	</xs:element>
	
</xs:schema>