<?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 4.0 to 4.1
		Name types amended to allow extended characters to be used within names (pupils and contacts);
		SurnameType and ForenameType.

	Changes 3.0 to 4.0
		New RelationshipTypeV2 created to follow CBDS v2.0 codeset
		Original RelationshipType left in place for backward compatibility

	Changes 2.0 to 3.0
		Namespace and Metadata updated 
		GenderCurrentType added as GenderCurrent is not as per E-Gif naming conventions
-->
<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="4.1" id="PeopleTypes">
	<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 href="mailto:ims.mailbox@dcsf.gsi.gov.uk">DSG D2 : CBDS and NRWS, Department for Children, Schools and Families</Creator>
				<Date>
					<Modified>2009-05-20</Modified>
					<Modified>2008-05-20</Modified>
					<Modified>2007-09-12</Modified>
					<Modified>2007-04-12</Modified>
					<Modified>2007-02-05</Modified>
					<Modified>2006-03-10</Modified>
					<Modified>2003-08-26</Modified>
					<Created>2001-12-19</Created>
					<Issued>2007-04-30</Issued>
				</Date>
				<Format Scheme="http://www.iana.org/assignments/media-types/">text/xml</Format>
				<Identifier>PeopleTypes</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>PeopleTypes2004</IsVersionOf>
					<IsPartOf>CBDS Schemas</IsPartOf>
					<ProvidesDefinitionOf>ForenameType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>MiddleNamesType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>NamePrefixType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>OrderType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>PersonFamilyNameType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>PersonFullNameType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>PersonGivenNameType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>PersonInitialsType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>PersonNameTitleType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>RelationshipType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>RestrictedStringType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>SexAtBirthType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>SurnameType</ProvidesDefinitionOf>
					<ProvidesDefinitionOf>GenderCurrentType</ProvidesDefinitionOf>
				</Relation>
				<Status>
					<Status>release</Status>
					<Description>May release for 2009</Description>
					<Version>4.1</Version>
				</Status>
				<Subject>
					<Project>CBDS</Project>
					<Category>Education and Skills</Category>
					<Category>Common Types</Category>
					<Category>People Types</Category>
				</Subject>
				<Title>People Types</Title>
				<Type>Architectural</Type>
				<Description>Provides the definition of various Identifiers and Common Types</Description>
				<Language>ENG</Language>
				<Rights>
					<Copyright>Crown Copyright 2003 - 2009</Copyright>
					<ProtectiveMarking>Unclassified</ProtectiveMarking>
				</Rights>
			</Metadata>
		</xs:appinfo>
	</xs:annotation>
	<xs:simpleType name="RestrictedStringType">
		<xs:annotation>
			<xs:documentation>Copy of RestrictedStringType form GDSC CommonSimpleTyped.xsd [version 1-3]</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="[A-Za-z0-9\s~!&quot;@#$%&amp;'\(\)\*\+,\-\./:;&lt;=&gt;\?\[\\\]_\{\}\^&#xa3;&#x20ac;]*"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PersonGivenNameType">
		<xs:restriction base="RestrictedStringType">
			<xs:minLength value="1"/>
			<xs:maxLength value="35"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PersonFamilyNameType">
		<xs:restriction base="RestrictedStringType">
			<xs:minLength value="1"/>
			<xs:maxLength value="35"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PersonInitials_Type">
		<xs:restriction base="RestrictedStringType">
			<xs:minLength value="1"/>
			<xs:maxLength value="35"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PersonNameTitle_Type">
		<xs:restriction base="RestrictedStringType">
			<xs:minLength value="1"/>
			<xs:maxLength value="35"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PersonFullName_Type">
		<xs:restriction base="RestrictedStringType">
			<xs:minLength value="1"/>
			<xs:maxLength value="70"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:annotation>
		<xs:documentation>Above types based on GDSC PersonDescriptiveTypes V1.0</xs:documentation>
	</xs:annotation>
	<xs:simpleType name="NamePrefixType">
		<xs:annotation>
			<xs:documentation>
Standard form of address used to precede a person's name.  See Government Data Standards Catalogue Vol2 p15</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="30"/>
		</xs:restriction>
	</xs:simpleType>

<!--
		The following name types have been amended to allow extended characters to be used within names (pupils and contacts);
		SurnameType and ForenameType. IK 20/05/2009
 -->
	<xs:simpleType name="SurnameType">
		<xs:annotation>
			<xs:documentation>
That part of a person's name which is used to describe family, clan, tribal group or marital association.</xs:documentation>
		</xs:annotation>
		<!-- <xs:restriction base="PersonFamilyNameType"> -->
		<xs:restriction base="xs:normalizedString">
			<xs:minLength value="1"/>
			<xs:maxLength value="35"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="ForenameType">
		<xs:annotation>
			<xs:documentation>
The main forename or given name </xs:documentation>
		</xs:annotation>
		<!-- <xs:restriction base="PersonGivenNameType"> -->
		<xs:restriction base="xs:normalizedString">
			<xs:minLength value="1"/>
			<xs:maxLength value="35"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="MiddleNamesType">
		<xs:annotation>
			<xs:documentation>
List of other given names or their initial letters</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="35"/>
			<xs:whiteSpace value="preserve"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="GenderCurrentType">
		<xs:annotation>
			<xs:documentation>Gender code, conforms to GDSC</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:byte">
			<xs:pattern value="[0-9]"/>
			<xs:enumeration value="0"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="9"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SexAtBirthType">
		<xs:annotation>
			<xs:documentation>
Gender as used in schools.  
Gender identity is important in the educational process, so unknown or indeterminate not used.			
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="M">
				<xs:annotation>
					<xs:documentation>Male</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="F">
				<xs:annotation>
					<xs:documentation>Female</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="RelationshipType">
		<xs:annotation>
			<xs:documentation>
Relationship of Adult to the Pupil
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="CAR">
				<xs:annotation>
					<xs:documentation>Carer</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DOC">
				<xs:annotation>
					<xs:documentation>Doctor</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PAM">
				<xs:annotation>
					<xs:documentation>Mother</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PAF">
				<xs:annotation>
					<xs:documentation>Father</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="STP">
				<xs:annotation>
					<xs:documentation>Step Parent</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SWR">
				<xs:annotation>
					<xs:documentation>Social Worker</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CHM">
				<xs:annotation>
					<xs:documentation>Childminder</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FAM">
				<xs:annotation>
					<xs:documentation>Other Family Member</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OTH">
				<xs:annotation>
					<xs:documentation>Other Contact</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="REL">
				<xs:annotation>
					<xs:documentation>Other Relative</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="RLG">
				<xs:annotation>
					<xs:documentation>Religious/Spiritual Contact</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="RelationshipTypeV2">
		<xs:annotation>
			<xs:documentation>Relationship of Adult to the Pupil - CBDS v2.0 codeset</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="CAR">
				<xs:annotation>
					<xs:documentation>Carer</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CHM">
				<xs:annotation>
					<xs:documentation>Childminder</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DOC">
				<xs:annotation>
					<xs:documentation>Doctor</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FAM">
				<xs:annotation>
					<xs:documentation>Other Family Member</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FOF">
				<xs:annotation>
					<xs:documentation>Foster Father</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FOM">
				<xs:annotation>
					<xs:documentation>Foster Mother</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="HTC">
				<xs:annotation>
					<xs:documentation>Head Teacher</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OTH">
				<xs:annotation>
					<xs:documentation>Other Contact</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PAF">
				<xs:annotation>
					<xs:documentation>Father</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PAM">
				<xs:annotation>
					<xs:documentation>Mother</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="REL">
				<xs:annotation>
					<xs:documentation>Other Relative</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="RLG">
				<xs:annotation>
					<xs:documentation>Religious/Spiritual Contact</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="STF">
				<xs:annotation>
					<xs:documentation>Step Father</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="STM">
				<xs:annotation>
					<xs:documentation>Step Mother</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SWR">
				<xs:annotation>
					<xs:documentation>Social Worker</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="TCH">
				<xs:annotation>
					<xs:documentation>Teacher</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="OrderType">
		<xs:annotation>
			<xs:documentation>
Priority order, for contact purposes, of Adult to the Pupil. 
Where more than one adult contact they need not be strictly ranked
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:minInclusive value="1"/>
			<xs:maxInclusive value="10"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="FormerFamilyNameStructure">
		<xs:sequence>
			<xs:element name="PersonFamilyName" type="PersonFamilyNameType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PersonNameStructure">
		<xs:annotation>
			<xs:documentation>This is a new Person Name Structure, to be used in all subsequent DSG data collections, oncve they are migrated from using FoOrename / Surname.  This is a simplified structure from that specifiedfor the 2008 Workforce pilot. However the SWF census should also use this new structure from January 2009.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="PersonFamilyName" type="PersonFamilyNameType"/>
			<xs:element name="GivenNames" type="GivenNameStructure" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="GivenNameStructure">
		<xs:sequence>
			<xs:element name="PersonGivenName" type="PersonGivenNameType" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
