<!--
		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="StudentDailyAttendanceType">
    <xs:sequence>
      <xs:element name="StudentPersonalRefId" type="IdRefType" />
      <xs:element name="SchoolInfoRefId" type="IdRefType" />
      <xs:element name="Date" type="xs:date" />
      <xs:element name="SchoolYear" type="SchoolYearType" />
      <xs:element name="DayValue" minOccurs="0" nillable="true" type="AUCodeSetsDayValueCodeType" />
      <xs:element name="AttendanceCode" type="AttendanceCodeType" />
      <xs:element name="AttendanceStatus" type="AUCodeSetsAttendanceStatusType" />
      <xs:element name="TimeIn" minOccurs="0" nillable="true" type="xs:time" />
      <xs:element name="TimeOut" minOccurs="0" nillable="true" type="xs:time" />
      <xs:element name="AbsenceValue" 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:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="AttendanceNote" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <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="StudentDailyAttendance" type="StudentDailyAttendanceType">
    <xs:key name="StudentDailyAttendanceKey1">
      <xs:selector xpath="./StudentDailyAttendance" />
      <xs:field xpath="@RefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentDailyAttendanceCollectionType">
    <xs:sequence>
      <xs:element name="StudentDailyAttendance" type="StudentDailyAttendanceType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentDailyAttendances" type="StudentDailyAttendanceCollectionType" />

</xs:schema>