<?xml version="1.0" encoding="utf-8" ?>
<Manifest version="1"
	xmlns="https://pub.ants.gouv.fr/2D-DOC/V2/QLF/05_XSD/6_ISO22376/"
	xmlns:ext="https://pub.ants.gouv.fr/2D-DOC/V2/QLF/05_XSD/6_ISO22376/EXTENSIONS/"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
	xsi:schemaLocation="https://pub.ants.gouv.fr/2D-DOC/V2/QLF/05_XSD/6_ISO22376/ XSD_MANIFEST_ISO22376_ANTS.xsd
	https://pub.ants.gouv.fr/2D-DOC/V2/QLF/05_XSD/6_ISO22376/EXTENSIONS/ XSD_EXTENSIONS_ISO22376_ANTS.xsd
	http://www.w3.org/2000/09/xmldsig# http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd">
	<Id>000406</Id>
	<Version>03</Version>
	<Name>
		<Value xml:lang="fr">Permis de Conduire - Bateaux de Plaisance à Moteur</Value>
	</Name>
	<Description>
		<Value xml:lang="fr">Attestation de droits</Value>
	</Description>
	<Schema>
		<Payload>
			<Fields>
				<!-- Le prénom du titulaire. -->
				<String name="Prénom">
					<StringConstraints>
						<MinLength>1</MinLength>
						<MaxLength>40</MaxLength>
					</StringConstraints>
				</String>
				<!-- Le nom du titulaire. -->
				<String name="Nom - ligne 1">
					<StringConstraints>
						<MinLength>1</MinLength>
						<MaxLength>40</MaxLength>
					</StringConstraints>
				</String>
				<!-- Le nom du titulaire. -->
				<String name="Nom - ligne 2">
					<StringConstraints>
						<Nillable/>
						<MinLength>1</MinLength>
						<MaxLength>40</MaxLength>
					</StringConstraints>
				</String>
				<!-- La date de naissance du titulaire. -->
				<Date name="Date de naissance">
					<DateConstraints>
						<From>1900-01-01</From>
					</DateConstraints>
				</Date>
				<!-- Le numéro de dossier. -->
				<String name="Numéro de titre">
					<StringConstraints>
						<MinLength>9</MinLength>
						<MaxLength>9</MaxLength>
						<Pattern>^[A-Za-z0-9]*$</Pattern>
					</StringConstraints>
				</String>
				<!-- Le numéro de permis. -->
				<String name="Numéro de permis">
					<StringConstraints>
						<MinLength>1</MinLength>
						<MaxLength>10</MaxLength>
					</StringConstraints>
				</String>
				<!-- La date d’émission du permis. -->
				<Date name="Date d'émission">
					<DateConstraints>
						<From>1900-01-01</From>
					</DateConstraints>
				</Date>
				<!-- La date d’effet de l’option côtière. -->
				<Date name="Option Côtière - Date d'effet">
					<DateConstraints>
						<Nillable/>
						<From>1900-01-01</From>
					</DateConstraints>
				</Date>
				<!-- La date d’effet de l’option eaux intérieures. -->
				<Date name="Option Eaux Intérieures - Date d'effet">
					<DateConstraints>
						<Nillable/>
						<From>1900-01-01</From>
					</DateConstraints>
				</Date>
				<!-- La date d’effet de l’extension grande plaisance eaux intérieures. -->
				<Date name="Extension Grande Plaisance Eaux Intérieures - Date d'effet">
					<DateConstraints>
						<Nillable/>
						<From>1900-01-01</From>
					</DateConstraints>
				</Date>
				<!-- La date d’effet de l’extension hauturière. -->
				<Date name="Extension Hauturière - Date d'effet">
					<DateConstraints>
						<Nillable/>
						<From>1900-01-01</From>
					</DateConstraints>
				</Date>
				<!-- Le contenu du champ d’options. -->
				<Object name="Options" type="optionsObject">
					<ObjectConstraints>
						<Nillable/>
					</ObjectConstraints>
				</Object>
				<!-- Image Portrait. -->
				<Binary name="Image_Portrait">
					<BinaryConstraints>
						<MaxLength>2000</MaxLength>
					</BinaryConstraints>
					<Extension xsi:type="ext:CiphertextExtensionType">
						<ext:Type>imagePortraitType</ext:Type>
					</Extension>
				</Binary>
				<!-- GGU. -->
				<String name="CGU">
					<StringConstraints>
						<MinLength>28</MinLength>
						<MaxLength>28</MaxLength>
					</StringConstraints>
				</String>
				<!-- Profil. -->
				<String name="Profil">
					<StringConstraints>
						<MinLength>2</MinLength>
						<MaxLength>2</MaxLength>
						<Pattern>^[A-F0-9]*$</Pattern>
					</StringConstraints>
				</String>
			</Fields>
		</Payload>
		<Types>
			<Type name="optionsObject">
				<Fields>
					<String name="Option">
						<StringConstraints>
							<Pattern>^(1|2|3|4|5)*$</Pattern>
						</StringConstraints>
						<Extension xsi:type="ext:AbbreviationExtensionType">
							<ext:Dictionary>OptionDictionnary</ext:Dictionary>
						</Extension>
					</String>
					<Date name="Option - Date d'effet">
						<DateConstraints>
							<From>1900-01-01</From>
						</DateConstraints>
					</Date>
				</Fields>
			</Type>
			<Type name="imagePortraitType">
				<Fields>
					<Binary name="ImagePortrait">
						<BinaryConstraints>
							<MinLength>700</MinLength>
						</BinaryConstraints>
						<Extension xsi:type="ext:ImageExtensionType">
							<ext:Format>WebP</ext:Format>
							<ext:Height>106</ext:Height>
							<ext:Width>86</ext:Width>
						</Extension> 
					</Binary>
				</Fields>
			</Type>
		</Types>
	</Schema>
	<Extensions>
		<Extension xsi:type="PoliciesExtensionType">
			<AuthorizedUsage>
				<oid>1.2.250.1.200.50.1.1</oid>
				<uuid>d320bbd858924288a266c47e2d6be178</uuid>
			</AuthorizedUsage>
		</Extension>
		<Extension xsi:type="ext:DictionariesExtensionType">
			<ext:Dictionary name="OptionDictionnary">
				<ext:Entry key="1">
					<ext:Value xml:lang="fr">Carte Mer</ext:Value>
				</ext:Entry>
				<ext:Entry key="2">
					<ext:Value xml:lang="fr">Carte Mer S</ext:Value>
				</ext:Entry>
				<ext:Entry key="3">
					<ext:Value xml:lang="fr">Permis fluvial C</ext:Value>
				</ext:Entry>
				<ext:Entry key="4">
					<ext:Value xml:lang="fr">Carte Mer + Permis fluvial C</ext:Value>
				</ext:Entry>
				<ext:Entry key="5">
					<ext:Value xml:lang="fr">Carte Mer S + Permis fluvial C</ext:Value>
				</ext:Entry>
			</ext:Dictionary>
		</Extension>
	</Extensions>
</Manifest>