<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.mycompany.com/customerrelations" xmlns="http://www.mycompany.com/customerrelations"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">

	<xsd:include schemaLocation="Gender.xsd" />
	
	<xsd:simpleType name="Name">
		<xsd:restriction base="xsd:token">
			<xsd:minLength value="1" />
			<xsd:maxLength value="255" />
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:complexType name="Person">
		<xsd:sequence>
			<xsd:element name="firstname" type="Name" nillable="false" minOccurs="1" maxOccurs="1" />
			<xsd:element name="lastname" type="Name" nillable="false" minOccurs="1" maxOccurs="1" />
			<xsd:element name="gender" type="Gender" nillable="false" minOccurs="1" maxOccurs="1" />
			<xsd:element name="birthday" type="xsd:date" nillable="false" minOccurs="0" maxOccurs="1" />			
		</xsd:sequence>
	</xsd:complexType>	

</xsd:schema>
