statistic.xsd 2.1 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="statistic" substitutionGroup="OutputElement" >
		<xs:complexType>
			<xs:sequence>
				<xs:element name="timeFormat" minOccurs="1" maxOccurs="1" type="TimeFormatType"/>
				<xs:element name="fileFormat" minOccurs="1" maxOccurs="1" type="FileFormatType"/>
				<xs:element name="outputStructure" minOccurs="0" maxOccurs="1" type="StatisticOutputStructureType"/>
				<xs:element name="fileName" minOccurs="0" maxOccurs="1"/>
				<xs:element name="params" type="StatisticParams" minOccurs="1" maxOccurs="1" />
				<xs:element ref="PostProcessingElement" minOccurs="0" maxOccurs="1"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	
	<xs:complexType name="StatisticParams">
      <xs:annotation>
      <xs:documentation>Parameters list with statistic functions to apply</xs:documentation>
      </xs:annotation>
      <xs:sequence>
      <xs:element name="param" minOccurs="1" maxOccurs="unbounded">
        <xs:complexType>
        	<xs:sequence>
          		<xs:element name="function" maxOccurs="unbounded" minOccurs="1">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="argument" maxOccurs="unbounded" minOccurs="0">
								<xs:complexType>
									<xs:attribute name="name" type="xs:string"/>
									<xs:attribute name="value" type="xs:string"/>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="name" type="xs:string"/>
					</xs:complexType>
				</xs:element>
         	</xs:sequence>
        	<xs:attribute name="id" type="xs:string"/> <!-- parameter id -->
        	<xs:attribute name="index" type="xs:int"/> <!-- parameter index -->      
        </xs:complexType>      
      </xs:element>
      </xs:sequence>
    </xs:complexType>
    
    <xs:simpleType name="StatisticOutputStructureType">
       <xs:restriction base="xs:string">
          <xs:enumeration value="one-file" />
          <xs:enumeration value="one-file-per-parameter" />
       </xs:restriction>
    </xs:simpleType>
    
</xs:schema>