<!--
		SIF Implementation Specification (New Zealand) 3.1
		(8 December, 2020
)
		
		Infrastructure Version: v3.1
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sifassociation.org/datamodel/nz/3.1" targetNamespace="http://www.sifassociation.org/datamodel/nz/3.1" elementFormDefault="qualified" version="3.1 (rc 5)">
  <xs:complexType name="ScheduleHolidayType">
    <xs:sequence>
      <xs:element name="ScheduleHolidayRefId" minOccurs="0" nillable="true" type="RefIdType" />
      <xs:element name="ScheduleHolidayLocalId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="Provider" minOccurs="0" nillable="true" type="ProviderObjectReferenceType" />
      <xs:element name="HolidayDate" type="xs:date" />
      <xs:element name="HolidayName" type="xs:normalizedString" />
      <xs:element name="HolidayLongName" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="AlwaysDisplayFlag" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="RecordAudit" minOccurs="0" nillable="true" type="RecordAuditType" />
    </xs:sequence>
  </xs:complexType>

  <xs:element name="ScheduleHoliday" type="ScheduleHolidayType">
    <xs:key name="ScheduleHolidayKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./ScheduleHolidayRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="ScheduleHolidayCollectionType">
    <xs:sequence>
      <xs:element name="ScheduleHoliday" type="ScheduleHolidayType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ScheduleHolidays" type="ScheduleHolidayCollectionType" />

</xs:schema>