<?xml version="1.0"?>
<schema 
	xmlns="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://www.telecom.gouv.fr/normau/address"
	elementFormDefault="qualified"
	xmlns:gml="http://www.opengis.net/gml"
	xmlns:a="http://www.telecom.gouv.fr/normau/address"
>

<!--
	<import namespace="http://www.opengis.net/gml" schemaLocation="Imports/geoshape/GML-pidf-lo-shape.xsd"/>  
-->

	<annotation>
		<documentation>Ce schéma reprend les codes ARCEP 06-0639.</documentation>
	</annotation>



<!-- ===========================================================================
    Type : Tel
=========================================================================== -->

	<simpleType name="Tel">
		<restriction base="string">
			<pattern value="\+[0-9]{7,15}"/>
		</restriction>
	</simpleType>

<!-- ===========================================================================
    Element : NDI
=========================================================================== -->

	<element name="NDI" type="a:Tel">
		<annotation>
			<documentation>Numéro de téléphone (E Z ABPQ MCDU)</documentation>
		</annotation>
	</element>


<!-- ===========================================================================
    Element : NDS
=========================================================================== -->

	<element name="NDS" type="a:Tel">
		<annotation>
			<documentation>Numéro de téléphone NDS (E Z ABPQ MCDU)</documentation>
		</annotation>
	</element>

<!-- ===========================================================================
    Type : UAA
=========================================================================== -->

	<element name="UAA">
		<annotation>
			<documentation>Utilisateur dans l'annuaire ARCEP</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="TN" minOccurs="0">
					<annotation>
						<documentation>Type de numéro : NDI ou NDS</documentation>
					</annotation>
					<simpleType>
					<restriction base="string">
						 <enumeration value="NDI"/>
						 <enumeration value="NDS"/>
					</restriction>
					</simpleType>
				</element>
				<element name="TA" minOccurs="0">
					<annotation>
						<documentation>Type d’adresse : INST : installation, FACT : facturation, ANNU : annuaire</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="4"/>
						</restriction>
					</simpleType>
				</element>
				<!--element ref="a:NDS" minOccurs="0"/-->
				<element name="N10" minOccurs="1" maxOccurs="1">
					<annotation>
						<documentation>Code opérateur de l’attributaire du numéro (code ARCEP de l’opérateur donneur, receveur ou attributaire)</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="4"/>
						</restriction>
					</simpleType>
				</element>
				<element name="U1a" minOccurs="0">
					<annotation>
						<documentation>Dénomination de l’entreprise</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="40"/>
						</restriction>
					</simpleType>
				</element>
				<element name="U1b" minOccurs="0">
					<annotation>
						<documentation>Dénomination additionelle</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="40"/>
						</restriction>
					</simpleType>
				</element>
				<element name="U2" minOccurs="0">
					<annotation>
						<documentation>Nom</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="100"/>
						</restriction>
					</simpleType>
				</element>
				<element name="U3" minOccurs="0">
					<annotation>
						<documentation>Prénom</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="30"/>
						</restriction>
					</simpleType>
				</element>
				<element name="U7" minOccurs="0">
					<annotation>
						<documentation>Profession</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="30"/>
						</restriction>
					</simpleType>
				</element>
				<element name="U8" minOccurs="0">
					<annotation>
						<documentation>Numéro SIRET</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<length value="14"/>
							<pattern value="[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]"/>
						</restriction>
					</simpleType>
				</element>
				<element name="U8b" minOccurs="0">
					<annotation>
						<documentation>Numéro SIREN</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<length value="9"/>
							<pattern value="[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]"/>
						</restriction>
					</simpleType>
				</element>
				<element name="A1" minOccurs="0">
					<annotation>
						<documentation>Numéro dans la voie</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="5"/>
						</restriction>
					</simpleType>
				</element>
				<element name="A2" minOccurs="0">
					<annotation>
						<documentation>Complément du numéro dans la voie (de A à Z ou
b= bis, c= ter, etc.)</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="1"/>
						</restriction>
					</simpleType>
				</element>
				<element name="A3" minOccurs="0">
					<annotation>
						<documentation>Type de voie (R = Rue, Av = Avenue, Bd = Boulevard, etc.)</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="4"/>
						</restriction>
					</simpleType>
				</element>
				<element name="A4" minOccurs="0">
					<annotation>
						<documentation>Nom de la voie</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="40"/>
						</restriction>
					</simpleType>
				</element>
				<element name="A5" minOccurs="0">
					<annotation>
						<documentation>Complément d’adresse (bâtiment, lieu-dit, quartier, etc)</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="30"/>
						</restriction>
					</simpleType>
				</element>
				<element name="A6" minOccurs="0">
					<annotation>
						<documentation>Arrondissement</documentation>
					</annotation>
					<simpleType>
								<annotation>
									<documentation>Sur deux chiffres; Pour Paris (01 à 20), Lyon (01 à 09) et Marseille (01 à 16)</documentation>
								</annotation>
						<restriction base="string">
							<length value="2"/>
						</restriction>
					</simpleType>
				</element>
				<element name="A7" minOccurs="0">
					<annotation>
						<documentation>Code postal</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<length value="5"/>
							<pattern value="[0-9][0-9][0-9][0-9][0-9]"/>
						</restriction>
					</simpleType>
				</element>
				<element name="A7bis" minOccurs="0">
					<annotation>
						<documentation>Code INSEE</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<length value="5"/>
							<pattern value="(2[AB]|[0-9]{2})[0-9]{3}"/>
						</restriction>
					</simpleType>
				</element>
				<element name="A10" minOccurs="0">
					<annotation>
						<documentation>Localité</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="60"/>
							<minLength value="1"/>
						</restriction>
					</simpleType>
				</element>
				<element name="L4" minOccurs="0">
					<annotation>
						<documentation>Partie L4 de l’adresse au format postal (voirie (numéro, complément, type de voie, nom de la voie)</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="50"/>
						</restriction>
					</simpleType>
				</element>
				<element name="L5" minOccurs="0">
					<annotation>
						<documentation>Partie L5 de l’adresse au format postal (Lieu-dit)</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="50"/>
						</restriction>
					</simpleType>
				</element>
				<element name="AL" minOccurs="0">
					<annotation>
						<documentation>Adresse libre</documentation>
					</annotation>
					<simpleType>
						<restriction base="string">
							<maxLength value="255"/>
						</restriction>
					</simpleType>
				</element>
			</sequence>
		</complexType>
	</element>

</schema>
