<!--
		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="SummaryEnrollmentInfoType">
    <xs:sequence>
      <xs:element ref="sif:SchoolYear" />
      <xs:element name="ParentObjectRefId">
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="sif:RefIdType">
              <xs:attribute name="SIF_RefObject" use="required">
                <xs:simpleType>
                  <xs:restriction base="xs:token">
                    <xs:enumeration value="StudentPersonal" />
                    <xs:enumeration value="StaffPersonal" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element ref="sif:LocalId" />
      <xs:element name="StateProvinceId" minOccurs="0" nillable="true" type="sif:StateProvinceIdType" />
      <xs:element ref="sif:PersonInfo" />
      <xs:element name="SchoolEnrollmentList">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="SchoolEnrollment" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="SchoolName" type="xs:normalizedString" />
                  <xs:element name="SchoolInfoRefId" minOccurs="0" nillable="true" type="sif:RefIdType" />
                  <xs:element name="SchoolLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType" />
                  <xs:element name="SchoolStateProvinceId" minOccurs="0" nillable="true" type="sif:StateProvinceIdType" />
                  <xs:element name="Student" minOccurs="0" nillable="true">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="StudentSchoolEnrollmentRefId" type="sif:RefIdType" />
                        <xs:element name="StudentLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType" />
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="Staff" minOccurs="0" nillable="true">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="StaffAssignmentRefId" type="sif:RefIdType" />
                        <xs:element name="StaffLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType" />
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="EnrollmentList" minOccurs="0" nillable="true">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Enrollment" maxOccurs="unbounded">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="TeachingGroupRefId" minOccurs="0" nillable="true" type="sif:IdRefType" />
                              <xs:element name="SchoolCourseInfoRefId" minOccurs="0" nillable="true" type="sif:IdRefType" />
                              <xs:element name="TimeTableSubjectRefId" minOccurs="0" nillable="true" type="sif:IdRefType" />
                              <xs:element ref="sif:LocalId" />
                              <xs:element name="ShortName" minOccurs="0" nillable="true" type="xs:normalizedString" />
                              <xs:element name="SchoolYear" minOccurs="0" nillable="true" type="sif:SchoolYearType" />
                              <xs:element name="SubjectLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType" />
                              <xs:element name="CourseLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType" />
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </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_ExtendedElementsKey38">
          <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:complexType>

  <xs:element name="SummaryEnrollmentInfo" type="sif:SummaryEnrollmentInfoType">
    <xs:key name="SummaryEnrollmentInfoKey1">
      <xs:selector xpath="." />
      <xs:field xpath="@RefId" />
    </xs:key>
  </xs:element>

</xs:schema>