<!--
		SIF Implementation Specification (Australia) 1.1 (December 23, 2010) Infrastructure Version: 2.4-16
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.sifinfo.org/au/infrastructure/2.x" xmlns:sif="http://www.sifinfo.org/au/infrastructure/2.x" elementFormDefault="qualified">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="imports/xml/xml.xsd" />
  <xs:complexType name="AggregateStatisticInfoType">
    <xs:annotation>
      <xs:documentation>This object defines the data that is being aggregated as well as the type of measurement that is being performed.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StatisticName" type="xs:token">
        <xs:annotation>
          <xs:documentation>Name of Aggregate Statistic</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CalculationRule" minOccurs="0" nillable="true">
        <xs:annotation>
          <xs:documentation>Rule for calculating the aggregate statistic</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string">
              <xs:attribute name="Type" use="required">
                <xs:simpleType>
                  <xs:restriction base="xs:token">
                    <xs:enumeration value="Description" />
                    <xs:enumeration value="Formula" />
                    <xs:enumeration value="URL" />
                    <xs:enumeration value="Other" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="ApprovalDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:documentation>Date for which the statistic is initially valid</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExpirationDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:documentation>Date after which the statistic is no longer valid</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExclusionRules" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ExclusionRule" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Rule for which statistic may not be reported</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:simpleContent>
                  <xs:extension base="xs:string">
                    <xs:attribute name="Type" use="required">
                      <xs:simpleType>
                        <xs:restriction base="xs:token">
                          <xs:enumeration value="SampleSize" />
                          <xs:enumeration value="Description" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:attribute>
                  </xs:extension>
                </xs:simpleContent>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Source" minOccurs="0" nillable="true" type="xs:token">
        <xs:annotation>
          <xs:documentation>System providing the data: i.e., SIS, Transportation,</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EffectiveDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:documentation>Effective date of the statistic</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DiscontinueDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:documentation>Discontinue date of the statistic</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Location" minOccurs="0" nillable="true" type="sif:LocationType">
        <xs:annotation>
          <xs:documentation>Location where the activity takes place.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Measure" minOccurs="0" nillable="true">
        <xs:annotation>
          <xs:documentation>Type of the statistic.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="Count" />
            <xs:enumeration value="Minimum" />
            <xs:enumeration value="Maximum" />
            <xs:enumeration value="Percent" />
            <xs:enumeration value="Mean" />
            <xs:enumeration value="Median" />
            <xs:enumeration value="Mode" />
            <xs:enumeration value="Sum" />
            <xs:enumeration value="StandardDeviation" />
            <xs:enumeration value="UnduplicatedCount" />
            <xs:enumeration value="FTE" />
            <xs:enumeration value="Other" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="sif:SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="sif:SIF_ExtendedElementsType">
        <xs:key name="SIF_ExtendedElementsKey4">
          <xs:selector xpath="./sif:SIF_ExtendedElement" />
          <xs:field xpath="@Name" />
        </xs:key>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="sif:RefIdType">
      <xs:annotation>
        <xs:documentation>Key</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="AggregateStatisticInfo" type="sif:AggregateStatisticInfoType">
    <xs:key name="AggregateStatisticInfoKey1">
      <xs:selector xpath="." />
      <xs:field xpath="@RefId" />
    </xs:key>
  </xs:element>

</xs:schema>