<!--
		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="SessionInfoType">
    <xs:annotation>
      <xs:documentation>
        This object provides the link between Period Attendance and the school's timetable.  It allows subject and teaching group information to be communicated to/from the attendance system.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SchoolInfoRefId" minOccurs="0" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>The ID (GUID) of the school for which this attendance information is being reported.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TimeTableCellRefId" minOccurs="0" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>The (GUID) of the piece of Curriculum (TT Grid) scheduled</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element ref="sif:SchoolYear" minOccurs="0" />
      <xs:element ref="sif:LocalId" minOccurs="0" />
      <xs:element name="TimeTableSubjectLocalId" minOccurs="0" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>TimeTableSubject Local Identifier</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroupLocalId" minOccurs="0" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Teaching Group Local Identifier</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>School Local Identifier</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffPersonalLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Staff Local Identifier</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RoomNumber" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:documentation>Room number as presented to the user or application.  Needs to be provided if changed from  TimeTableCell.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DayId" minOccurs="0" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Day Id </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PeriodId" minOccurs="0" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Period Id within the Day Id</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SessionDate" minOccurs="0" type="xs:date">
        <xs:annotation>
          <xs:documentation>Date of Session</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:documentation>Optional Start Time</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FinishTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:documentation>Optional End Time</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RollMarked" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:documentation>Was the Roll Marked for this Period?</xs:documentation>
        </xs:annotation>
      </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:unique name="SIF_ExtendedElementsKey31">
          <xs:selector xpath="./sif:SIF_ExtendedElement" />
          <xs:field xpath="@Name" />
        </xs:unique>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="sif:RefIdType">
      <xs:annotation>
        <xs:documentation>The GUID of the Object</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="SessionInfo" type="sif:SessionInfoType">
    <xs:unique name="SessionInfoKey1">
      <xs:selector xpath="." />
      <xs:field xpath="@RefId" />
    </xs:unique>
  </xs:element>

</xs:schema>