<!--
		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="TimeTableCellType">
    <xs:annotation>
      <xs:documentation>
        The purpose of this object is to identify a specific cell within a particular TimeTable.  A time table is a structure that represents all the available days and times (periods) for which a particular teaching group, or subject can be scheduled.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TimeTableRefId" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>The GUID of the TimeTable to which this Cell belongs</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TimeTableSubjectRefId" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>The GUID of the Subject that this Cell is scheduling</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroupRefId" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>The GUID of the TeachingGroup being scheduled</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RoomInfoRefId" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>The GUID of the Resource being Scheduled</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffPersonalRefId" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>The GUID of the Staff Member being Scheduled</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TimeTableLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Time Table Local Identifier</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Subject Local Id</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroupLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Teaching Group </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RoomNumber" type="sif:HomeroomNumberType">
        <xs:annotation>
          <xs:documentation>Room number as presented to the user/application.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Staff LocalId</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DayId" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Day Id </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PeriodId" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Period Id within the Day Id</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CellType" type="xs:normalizedString">
        <xs:annotation>
          <xs:documentation>Type of Lesson/Session  eg Teaching, Lunch etc</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolInfoRefId" minOccurs="0" nillable="true" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>Optional the GUID of the SchoolInfo Object  if this object is known in the zone</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolLocalId" minOccurs="0" nillable="true" type="sif:LocalIdType">
        <xs:annotation>
          <xs:documentation>Optional Local School Id</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:key name="SIF_ExtendedElementsKey36">
          <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>The GUID of the TimeTableCell</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="TimeTableCell" type="sif:TimeTableCellType">
    <xs:key name="TimeTableCellKey1">
      <xs:selector xpath="." />
      <xs:field xpath="@RefId" />
    </xs:key>
  </xs:element>

</xs:schema>