<!--
		SIF Implementation Specification (Australia) 3.4.3


		(April 5, 2018)
		
		Infrastructure Version: v3
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sifassociation.org/datamodel/au/3.4" targetNamespace="http://www.sifassociation.org/datamodel/au/3.4" elementFormDefault="qualified" version="3.4.3">
  <xs:complexType name="StudentSchoolEnrollmentType">
    <xs:sequence>
      <xs:element name="StudentPersonalRefId" minOccurs="0" type="IdRefType" />
      <xs:element name="SchoolInfoRefId" minOccurs="0" type="IdRefType" />
      <xs:element name="MembershipType" minOccurs="0" type="AUCodeSetsSchoolEnrollmentTypeType" />
      <xs:element name="LocalId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="TimeFrame" minOccurs="0" type="AUCodeSetsEnrollmentTimeFrameType" />
      <xs:element name="SchoolYear" minOccurs="0" type="SchoolYearType" />
      <xs:element name="EntryDate" minOccurs="0" type="xs:date" />
      <xs:element name="EntryType" minOccurs="0" nillable="true" type="StudentEntryContainerType" />
      <xs:element name="YearLevel" minOccurs="0" nillable="true" type="YearLevelType" />
      <xs:element name="Homeroom" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="IdRefTypeOrEmpty">
              <xs:attribute name="SIF_RefObject" use="required">
                <xs:simpleType>
                  <xs:restriction base="xs:token">
                    <xs:enumeration value="RoomInfo" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="Advisor" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="IdRefTypeOrEmpty">
              <xs:attribute name="SIF_RefObject" use="required">
                <xs:simpleType>
                  <xs:restriction base="xs:token">
                    <xs:enumeration value="StaffPersonal" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="Counselor" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="IdRefTypeOrEmpty">
              <xs:attribute name="SIF_RefObject" use="required">
                <xs:simpleType>
                  <xs:restriction base="xs:token">
                    <xs:enumeration value="StaffPersonal" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="Homegroup" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="ACARASchoolId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="ClassCode" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="TestLevel" minOccurs="0" nillable="true" type="YearLevelType" />
      <xs:element name="ReportingSchool" minOccurs="0" nillable="true" type="AUCodeSetsYesOrNoCategoryType" />
      <xs:element name="House" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="IndividualLearningPlan" minOccurs="0" nillable="true" type="AUCodeSetsYesOrNoCategoryType" />
      <xs:element name="Calendar" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="IdRefTypeOrEmpty">
              <xs:attribute name="SIF_RefObject" use="required">
                <xs:simpleType>
                  <xs:restriction base="xs:token">
                    <xs:enumeration value="CalendarSummary" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="ExitDate" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="ExitStatus" minOccurs="0" nillable="true" type="StudentExitStatusContainerType" />
      <xs:element name="ExitType" minOccurs="0" nillable="true" type="StudentExitContainerType" />
      <xs:element name="FTE" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:minInclusive value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:maxInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:fractionDigits value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="FTPTStatus" minOccurs="0" nillable="true" type="AUCodeSetsFTPTStatusCodeType" />
      <xs:element name="FFPOS" minOccurs="0" nillable="true" type="AUCodeSetsFFPOSStatusCodeType" />
      <xs:element name="CatchmentStatus" minOccurs="0" nillable="true" type="CatchmentStatusContainerType" />
      <xs:element name="RecordClosureReason" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="SchoolExit" />
            <xs:enumeration value="TimeDependentDataChange" />
            <xs:enumeration value="EndOfYear" />
            <xs:enumeration value="CampusExit" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PromotionInfo" minOccurs="0" nillable="true" type="PromotionInfoType" />
      <xs:element name="PreviousSchool" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="DestinationSchool" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="StudentSubjectChoiceList" minOccurs="0" nillable="true" type="StudentSubjectChoiceListType" />
      <xs:element name="StartedAtSchoolDate" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="SIF_ExtendedElementsType" />
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="RefIdType" />
  </xs:complexType>

  <xs:element name="StudentSchoolEnrollment" type="StudentSchoolEnrollmentType">
    <xs:unique name="StudentSchoolEnrollmentKey1">
      <xs:selector xpath="./StudentSchoolEnrollment" />
      <xs:field xpath="@RefId" />
    </xs:unique>
  </xs:element>

  <xs:complexType name="StudentSchoolEnrollmentCollectionType">
    <xs:sequence>
      <xs:element name="StudentSchoolEnrollment" type="StudentSchoolEnrollmentType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentSchoolEnrollments" type="StudentSchoolEnrollmentCollectionType" />

</xs:schema>