<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 sp2 U (http://www.altova.com) by Iain King (Dept. for Children, Schools and Families) -->
<!-- 
	Changes 1.0 to 2.0
		Metadata updated to reflect the change of Department's name.
-->
<xs:schema xmlns="http://www.dcsf.gov.uk/schemas/cbds" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.dcsf.gov.uk/schemas/cbds" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.0" id="EstabNoType">
	<xs:annotation>
		<xs:appinfo>
			<Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">
				<Contributor Role="Developer" Href="mailto:Iain.King@dcsf.gsi.gov.uk">Iain King</Contributor>
				<Contributor Role="DSG Helpdesk" Href="mailto:DSG.HELPDESK@DCSF.GSI.Gov.UK">DCSF - DSG (D1)</Contributor>
				<Creator>DSG D2 : CBDS and NRWS, Department for Children, Schools and Families</Creator>
				<Date>
					<Modified>2009-05-20</Modified>
					<Modified>2007-09-14</Modified>
					<Modified>2007-02-05</Modified>
					<Modified>2006-03-10</Modified>
					<Modified>2005-05-13</Modified>
					<Modified>2003-01-02</Modified>
					<Created>2001-12-19</Created>
					<Issued/>
				</Date>
				<Format Scheme="http://www.iana.org/assignments/media-types/">text/xml</Format>
				<Identifier>EstabNoType</Identifier>
				<Publisher>Department for Children, Schools and Families, Sanctuary Buildings, Great Smith Street, London  SW1P 3BT</Publisher>
				<Relation>
					<ConformsTo>http://www.w3.org/2001/XMLSchema</ConformsTo>
					<IsVersionOf>EstabNoType2007</IsVersionOf>
					<IsPartOf>CBDS Schemas</IsPartOf>
					<ProvidesDefinitionOf>AcademiesEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>All_ExcludingX_LandM_EstabsType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>AllEstabsType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>CityTechnologyEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>CommunitySpecialEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>CTFEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>FoundationSpecExGMEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>FurtherEducationEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>IndependentSchoolEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>LeaHouseHospitalEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>MaintainedPrimaryEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>MaintainedPrimaryExGMEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>MaintainedSecondaryEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>MaintainedSecondaryExGMEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>MiscellaneousEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>MixedMaintainedPriSecEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>NonMainAndCommunityEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>NurseryEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>OtherMiscellaneousEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>PlayingForSuccessEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>PseudoSchoolType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>PupilReferralUnitEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>ReservedEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>SecureUnitAndMiscEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>SixthFormCentresEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>SpecialCollegesEstabNotype</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>SpecialCollegesEstabNotype</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>SpecialSchoolsEstabNoType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>UnknownEstabNoType</ProvidesDefinitionOf>
				</Relation>
				<Status>
					<Status>release</Status>
					<Description>May release for 2009</Description>
					<Version>2.0</Version>
				</Status>
				<Subject>
					<Project>CBDS</Project>
					<Category>Schools Education</Category>
					<Category>School Identifiers</Category>
				</Subject>
				<Title>Establishment Number Type</Title>
				<Type>Architectural</Type>
				<Description>Provides the definition of Establishment Number Types</Description>
				<Language>ENG</Language>
				<Rights>
					<Copyright>Crown Copyright 2003 - 2009</Copyright>
					<ProtectiveMarking>Unclassified</ProtectiveMarking>
				</Rights>
			</Metadata>
		</xs:appinfo>
	</xs:annotation>
	<xs:simpleType name="AllEstabsType">
		<xs:annotation>
			<xs:documentation>Union of all EstabTypes.


School Number allocated by DCSF, unique at any given time within LEA.
LEA and School numbers may be reallocated, so only guaranteed key is the URN
			</xs:documentation>
		</xs:annotation>
		<xs:union>
			<xs:simpleType>
				<xs:restriction base="SecureUnitAndMiscEstabNoType">
					<xs:minLength value="4"/>
				</xs:restriction>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="PlayingForSuccessEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="NurseryEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="PupilReferralUnitEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MiscellaneousEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MaintainedPrimaryEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MaintainedSecondaryEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="SixthFormCentresEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MaintainedPrimaryExGMEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MaintainedSecondaryExGMEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MixedMaintainedPriSecEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="FoundationSpecExGMEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="IndependentSchoolEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="CityTechnologyEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="AcademiesEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="SpecialSchoolsEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="NonMainAndCommunityEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="CommunitySpecialEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="SpecialCollegesEstabNotype"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="FurtherEducationEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="LeaHouseHospitalEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="OtherMiscellaneousEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="UnknownEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="CTFEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="PseudoSchoolType"/>
			</xs:simpleType>
		</xs:union>
	</xs:simpleType>
	<xs:simpleType name="All_ExcludingX_LandM_EstabsType">
		<xs:annotation>
			<xs:documentation>Union of all EstabTypes excluding UnknownEstabNoType and CTFEstabNotype.


School Number allocated by DCSF, unique at any given time within LEA.
LEA and School numbers may be reallocated, so only guaranteed key is the URN
			</xs:documentation>
		</xs:annotation>
		<xs:union>
			<xs:simpleType>
				<xs:restriction base="SecureUnitAndMiscEstabNoType">
					<xs:minLength value="4"/>
				</xs:restriction>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="PlayingForSuccessEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="NurseryEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="PupilReferralUnitEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MiscellaneousEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MaintainedPrimaryEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MaintainedSecondaryEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="SixthFormCentresEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MaintainedPrimaryExGMEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MaintainedSecondaryExGMEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="MixedMaintainedPriSecEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="FoundationSpecExGMEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="IndependentSchoolEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="CityTechnologyEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="AcademiesEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="SpecialSchoolsEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="NonMainAndCommunityEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="CommunitySpecialEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="SpecialCollegesEstabNotype"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="FurtherEducationEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="LeaHouseHospitalEstabNoType"/>
			</xs:simpleType>
			<xs:simpleType>
				<xs:restriction base="OtherMiscellaneousEstabNoType"/>
			</xs:simpleType>
		</xs:union>
	</xs:simpleType>
	<xs:simpleType name="SecureUnitAndMiscEstabNoType">
		<xs:annotation>
			<xs:documentation>Secure Units and Miscellaneous 0001-0900</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4"/>
			<xs:pattern value="0[0-8]{1}[1-9]{1}[0-9]{1}"/>
			<xs:pattern value="0[0-8]{1}[0-9]{1}[1-9]{1}"/>
			<xs:pattern value="0[9]00"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PlayingForSuccessEstabNoType">
		<xs:annotation>
			<xs:documentation>Playing for success 0940 - 0949</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4"/>
			<xs:pattern value="094[0-9]"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="NurseryEstabNoType">
		<xs:annotation>
			<xs:documentation>
Nursery Schools 1000-1099		</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4"/>
			<xs:pattern value="10[0-9]{2}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PupilReferralUnitEstabNoType">
		<xs:annotation>
			<xs:documentation>Pupil Referral units 1100 - 1149</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4"/>
			<xs:minLength value="4"/>
			<xs:pattern value="11[0-4]{1}[0-9]{1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="MiscellaneousEstabNoType">
		<xs:annotation>
			<xs:documentation>Miscellaneous - 1800- 1999</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="1[8-9]{1}[0-9]{2}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="MaintainedPrimaryEstabNoType">
		<xs:annotation>
			<xs:documentation>Maintained Primary 2000 - 3999 (including Middle deemed Primary) </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="[2-3]{1}[0-9]{3}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="MaintainedSecondaryEstabNoType">
		<xs:annotation>
			<xs:documentation>Maintained Secondary 4000 - 4899 (inc. Middle Deemed Secondary)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="4[0-8]{1}[0-9]{2}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SixthFormCentresEstabNoType">
		<xs:annotation>
			<xs:documentation>SixthFormCentres 4900 - 4999</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="49[0-9]{2}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="MaintainedPrimaryExGMEstabNoType">
		<xs:annotation>
			<xs:documentation>Maintained Primary 5200 - 5299 (Exc. GM inc Middle deemed pri)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="52[0-9]{2}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="MaintainedSecondaryExGMEstabNoType">
		<xs:annotation>
			<xs:documentation>Maintained Secondary 5400 - 5499  (Exc. GM inc Middle deemed Sec)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="54[0-9]{2}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="MixedMaintainedPriSecEstabNoType">
		<xs:annotation>
			<xs:documentation>Mixed Maintained Primary and Secondary 5900 - 5949</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="59[0-4]{1}[0-9]{1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FoundationSpecExGMEstabNoType">
		<xs:annotation>
			<xs:documentation>Foundation Special 5950 - 5999 (Excluding GM)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="59[5-9]{1}[0-9]{1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="IndependentSchoolEstabNoType">
		<xs:annotation>
			<xs:documentation>Independent Schools 6000 - 6599 (inc. Special and approved for SEN)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="6[0-5]{1}[0-9]{2}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="CityTechnologyEstabNoType">
		<xs:annotation>
			<xs:documentation>City Technology colleges 6900 - 6904</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="690[0-4]{1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="AcademiesEstabNoType">
		<xs:annotation>
			<xs:documentation>Academies 6905 – 6924</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="690[5-9]{1}"/>
			<xs:pattern value="691[0-9]{1}"/>
			<xs:pattern value="692[0-4]{1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SpecialSchoolsEstabNoType">
		<xs:annotation>
			<xs:documentation>Special Schools 7000 - 7751</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="7[0-6]{1}[0-9]{2}"/>
			<xs:pattern value="77[0-4]{1}[0-9]{1}"/>
			<xs:pattern value="775[0-1]{1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="NonMainAndCommunityEstabNoType">
		<xs:annotation>
			<xs:documentation>NonMaintianed And Community Special Schools 7500 - 7511</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="750[0-9]{1}"/>
			<xs:pattern value="751[0-1]{1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="CommunitySpecialEstabNoType">
		<xs:annotation>
			<xs:documentation>Community Special Schools 7748 - 7754</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="774[8-9]{1}"/>
			<xs:pattern value="775[0-4]{1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SpecialCollegesEstabNotype">
		<xs:annotation>
			<xs:documentation>Special Colleges 7900 - 7901</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="790[0-1]{1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FurtherEducationEstabNoType">
		<xs:annotation>
			<xs:documentation>Further Education 8000 - 8799 (inc Sixth Form Colleges, incl. 8713 for Nottingham Trent University)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="8[0-7]{1}[0-9]{2}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="LeaHouseHospitalEstabNoType">
		<xs:annotation>
			<xs:documentation>Lea House Hospital 9455</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:enumeration value="9455"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="OtherMiscellaneousEstabNoType">
		<xs:annotation>
			<xs:documentation>'Miscellaneous 9500 - 9910  (inc Secure Units, incl. 9565 for Blaby Community Home)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="4"/>
			<xs:maxLength value="4"/>
			<xs:pattern value="9[5-8]{1}[0-9]{2}"/>
			<xs:pattern value="990[0-9]{1}"/>
			<xs:pattern value="991[0]{1}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="UnknownEstabNoType">
		<xs:annotation>
			<xs:documentation>Unknown/Other  
where "Other" = Overseas school or school not in lookup table  </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="XXXX"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="CTFEstabNoType">
		<xs:annotation>
			<xs:documentation>Pupil left maintained sector (for specific CTF purposes only)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="MMMM"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ReservedEstabNoType">
		<xs:annotation>
			<xs:documentation>
Reserved for use by LEAs to issue UPNs, 3950-3999

This Range is also included in "MaintainedPrimaryEstabNoType"			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="39[5-9][0-9]"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PseudoSchoolType">
		<xs:annotation>
			<xs:documentation>LLLL Value is used in the Common Transfer File (CTF) and in filenames 
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="LLLL">
				<xs:annotation>
					<xs:documentation>Destined for LEA as opposed to School</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
