﻿<?xml version="1.0" encoding="UTF-8"?>
<!-- 
Organisme : Bibliothèque nationale de France
Auteur : BnF/DSR/DSI/SED/BEA
Auteur : Catherine LEROUGE
Auteur : Laurent DUPLOUY

Version 6 du 10 avril 2012
Statut : validée
Ajout d'un paquet de livraison à Spar.
Par rapport à la version 5, pas de modification Alto

Version 5 du 19 janvier 2012
Statut : validée
Ajout d'un attribut TYPE (avec liste de valeurs contrôlée),
dans le type "StringType" (utilisé pour définir l'élément "String").

Version 4.0 du vendredi 20 mai 2011
Statut : reportée
Modification du pattern de /alto/@ID, une longueur de 8 caractères est désormais acceptée (en plus de 6 et 7).

Version 3.0 du jeudi 5 novembre 2009, 17:35:03
Statut : retirée
Patch par Philippe Prados. 
Remplacement des classes de caractères [0-9] dans les expressions régulières par la pseudo-classe /d. 

Version 1.12 du 04 décembre 2007
Statut : retirée
Définition du pattern de /alto/@ID avec longueur de 6 ou 7 caractères
Ajout de l'attribut WD (Word Dictionary) dans String (présence ou pas dans le dictionnaire)

Version 1.11 du 17 novembre 2006
Statut : retirée
Suppression contrainte sur élément PrintSpace => un élément Page peut être vide (il contient alors l'attribut PAGECLASS='BlankPage')

Version 1.1 du 28 février 2006
Statut : retirée
Ajout de containtes. Création du nameSpace "http://bibnum.bnf.fr/ns/alto_prod"

Version 1 du 9 février 2006
Statut : retirée
Les évolutions par rapport à la version de la LOC sont annotées avec la mention "ajout LAD"
-->
<xsd:schema xmlns:alto="http://bibnum.bnf.fr/ns/alto_prod" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/TR/xlink" targetNamespace="http://bibnum.bnf.fr/ns/alto_prod" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:annotation>
		<xsd:documentation>Modification LAD du 28 février 2006</xsd:documentation>
		<xsd:documentation>Changement de nameSpace . Création du nameSpace "http://bibnum.bnf.fr/ns/alto_prod"</xsd:documentation>
	</xsd:annotation>
	<xsd:import namespace="http://www.w3.org/TR/xlink" schemaLocation="http://bibnum.bnf.fr/ns/xlink.xsd"/>
	<xsd:element name="alto">
		<xsd:annotation>
			<xsd:documentation>ALTO (analyzed layout and text object) stores layout information and 
			OCR recognized text of pages of any kind of printed documents like books, journals and newspapers.
			ALTO is a standardized XML format to store layout and content information.
			It is designed to be used as an extension schema to METS (Metadata Encoding and Transmission Standard),
			where METS provides metadata and structural information while ALTO contains content and physical information.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="Description">
					<xsd:annotation>
						<xsd:documentation>Describes general settings of the alto file like measurement units and metadata</xsd:documentation>
					</xsd:annotation>
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="MeasurementUnit">
								<xsd:annotation>
									<xsd:documentation>All measurement values inside the alto file except fontsize are related to this unit. The default is 1/10 of mm</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="xsd:string">
										<xsd:pattern value="pixel"/>
										<!-- Patch Ph. PRADOS : Pourquoi un pattern fixe ? -->
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
							<xsd:element name="sourceImageInformation" type="alto:sourceImageInformationType"/>
							<xsd:element name="OCRProcessing" maxOccurs="unbounded">
								<xsd:complexType>
									<xsd:complexContent>
										<xsd:extension base="alto:ocrProcessingType">
											<xsd:attribute name="ID" type="xsd:ID" use="required"/>
										</xsd:extension>
									</xsd:complexContent>
								</xsd:complexType>
							</xsd:element>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="Styles" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>Styles define properties of layout elements. A style defined in a parent element is used as default style for all related children elements. </xsd:documentation>
					</xsd:annotation>
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="TextStyle" maxOccurs="unbounded">
								<xsd:annotation>
									<xsd:documentation>Modification LAD du 28 fÃ©vrier 2006</xsd:documentation>
									<xsd:documentation>Elément rendu obligatoire.</xsd:documentation>
									<xsd:documentation>A text style defines font properties of text. </xsd:documentation>
								</xsd:annotation>
								<xsd:complexType>
									<xsd:attribute name="ID" type="xsd:ID"/>
									<xsd:attributeGroup ref="alto:formattingAttributeGroup"/>
								</xsd:complexType>
							</xsd:element>
							<xsd:element name="ParagraphStyle" minOccurs="0" maxOccurs="unbounded">
								<xsd:annotation>
									<xsd:documentation>A paragraph style defines formatting properties of text blocks.</xsd:documentation>
								</xsd:annotation>
								<xsd:complexType>
									<xsd:attribute name="ID" use="required">
										<xsd:simpleType>
											<xsd:restriction base="xsd:ID">
												<xsd:pattern value="TXT_\d*"/>
												<!-- Patch Ph. PRADOS -->
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:attribute>
									<xsd:attribute name="ALIGN" use="optional">
										<xsd:annotation>
											<xsd:documentation>Indicates the alignement of the paragraph. Could be left, right, center or justify.</xsd:documentation>
										</xsd:annotation>
										<xsd:simpleType>
											<xsd:restriction base="xsd:string">
												<xsd:enumeration value="Left"/>
												<xsd:enumeration value="Right"/>
												<xsd:enumeration value="Center"/>
												<xsd:enumeration value="Block"/>
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:attribute>
									<xsd:attribute name="LEFT" type="xsd:float" use="optional">
										<xsd:annotation>
											<xsd:documentation>Left indent of the paragraph in relation to the column.</xsd:documentation>
										</xsd:annotation>
									</xsd:attribute>
									<xsd:attribute name="RIGHT" type="xsd:float" use="optional">
										<xsd:annotation>
											<xsd:documentation>Right indent of the paragraph in relation to the column.</xsd:documentation>
										</xsd:annotation>
									</xsd:attribute>
									<xsd:attribute name="LINESPACE" type="xsd:float" use="optional">
										<xsd:annotation>
											<xsd:documentation>Line spacing between two lines of the paragraph. Measurement calculated from baseline to baseline.</xsd:documentation>
										</xsd:annotation>
									</xsd:attribute>
									<xsd:attribute name="FIRSTLINE" type="xsd:float" use="optional">
										<xsd:annotation>
											<xsd:documentation>Indent of the first line of the paragraph if this is different from the other lines. A negative value indicates an indent to the left, a positive value indicates an indent to the right.</xsd:documentation>
										</xsd:annotation>
									</xsd:attribute>
								</xsd:complexType>
							</xsd:element>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="Layout">
					<xsd:annotation>
						<xsd:documentation>The root layout element.</xsd:documentation>
					</xsd:annotation>
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="Page" maxOccurs="unbounded">
								<xsd:annotation>
									<xsd:documentation>One page of a book or journal.</xsd:documentation>
								</xsd:annotation>
								<xsd:complexType>
									<xsd:sequence>
										<xsd:element name="TopMargin" type="alto:PageSpaceType" minOccurs="0">
											<xsd:annotation>
												<xsd:documentation>The area between the top line of print and the upper edge of the leaf. It may contain page number or running title.</xsd:documentation>
											</xsd:annotation>
										</xsd:element>
										<xsd:element name="LeftMargin" type="alto:PageSpaceType" minOccurs="0">
											<xsd:annotation>
												<xsd:documentation>The area between the printspace and the left border of a page. May contain margin notes.</xsd:documentation>
											</xsd:annotation>
										</xsd:element>
										<xsd:element name="RightMargin" type="alto:PageSpaceType" minOccurs="0">
											<xsd:annotation>
												<xsd:documentation>The area between the printspace and the right border of a page. May contain margin notes.</xsd:documentation>
											</xsd:annotation>
										</xsd:element>
										<xsd:element name="BottomMargin" type="alto:PageSpaceType" minOccurs="0">
											<xsd:annotation>
												<xsd:documentation>The area between the bottom line of letterpress or writing and the bottom edge of the leaf. It may contain a page number, a signature number or a catch word.</xsd:documentation>
											</xsd:annotation>
										</xsd:element>
										<xsd:element name="PrintSpace" type="alto:PageSpaceType" minOccurs="0">
											<xsd:annotation>
												<xsd:documentation>Rectangle covering the printed area of a page. Page number and running title are not part of the print space. </xsd:documentation>
											</xsd:annotation>
										</xsd:element>
									</xsd:sequence>
									<xsd:attribute name="ID" use="required">
										<xsd:simpleType>
											<xsd:restriction base="xsd:ID">
												<xsd:pattern value="PAG_\d*"/>
												<!-- Patch Ph. PRADOS -->
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:attribute>
									<xsd:attribute name="PAGECLASS" type="xsd:string" use="optional">
										<xsd:annotation>
											<xsd:documentation>Any user-defined class like title page.</xsd:documentation>
										</xsd:annotation>
									</xsd:attribute>
									<xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
									<xsd:attribute name="HEIGHT" type="xsd:int" use="required"/>
									<xsd:attribute name="WIDTH" type="xsd:int" use="required"/>
									<xsd:attribute name="PHYSICAL_IMG_NR" type="xsd:int" use="required">
										<xsd:annotation>
											<xsd:documentation>The number of the page within the document.</xsd:documentation>
										</xsd:annotation>
									</xsd:attribute>
									<xsd:attribute name="PRINTED_IMG_NR" type="xsd:string" use="optional">
										<xsd:annotation>
											<xsd:documentation>The page number that is printed on the page.</xsd:documentation>
										</xsd:annotation>
									</xsd:attribute>
									<xsd:attribute name="QUALITY" use="optional">
										<xsd:simpleType>
											<xsd:restriction base="xsd:string">
												<xsd:enumeration value="Missing"/>
												<xsd:enumeration value="Damaged"/>
												<xsd:enumeration value="OK"/>
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:attribute>
									<xsd:attribute name="POSITION" use="optional">
										<xsd:annotation>
											<xsd:documentation>Position of the page. Could be lefthanded, righthanded, foldout or single if it has no special position.</xsd:documentation>
										</xsd:annotation>
										<xsd:simpleType>
											<xsd:restriction base="xsd:string">
												<xsd:enumeration value="Left"/>
												<xsd:enumeration value="Right"/>
												<xsd:enumeration value="Foldout"/>
												<xsd:enumeration value="Single"/>
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:attribute>
									<xsd:attribute name="PROCESSING" type="xsd:IDREF" use="optional">
										<xsd:annotation>
											<xsd:documentation>Modification LAD du 28 février 2006</xsd:documentation>
											<xsd:documentation>Attribut rendu obligatoire.</xsd:documentation>
											<xsd:documentation>A link to the processing description that has been used for this page.</xsd:documentation>
										</xsd:annotation>
									</xsd:attribute>
								</xsd:complexType>
							</xsd:element>
						</xsd:sequence>
						<xsd:attribute name="STYLEREFS" type="xsd:IDREFS"/>
					</xsd:complexType>
				</xsd:element>
			</xsd:sequence>
			<xsd:attribute name="ID" use="required">
				<xsd:annotation>
					<xsd:documentation>ajout LAD du 7 novembre 2005.</xsd:documentation>
					<xsd:documentation>Permet d'identifier les fichiers.</xsd:documentation>
					<xsd:documentation>Modification du 04 décembre 2007 - définition du pattern de /alto/@ID avec longueur de 6 ou 7 caractères</xsd:documentation>
					<xsd:documentation>Modification du 20 mai 2011 - modification du pattern de /alto/@ID : une longueur de 8 caractères est désormais acceptée</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="xsd:ID">
						<xsd:pattern value="alto.\d{6,8}"/>
						<!-- Patch Ph. PRADOS puis Catherine Lerouge -->
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:attribute>
		</xsd:complexType>
	</xsd:element>
	<xsd:group name="BlockGroup">
		<xsd:annotation>
			<xsd:documentation>Group of available block types</xsd:documentation>
		</xsd:annotation>
		<xsd:choice>
			<xsd:element name="TextBlock" type="alto:TextBlockType">
				<xsd:annotation>
					<xsd:documentation>A block of text.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Illustration" type="alto:IllustrationType">
				<xsd:annotation>
					<xsd:documentation>A picture or image.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="GraphicalElement" type="alto:GraphicalElementType">
				<xsd:annotation>
					<xsd:documentation>A graphic used to separate blocks. Usually a line or rectangle.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ComposedBlock" type="alto:ComposedBlockType">
				<xsd:annotation>
					<xsd:documentation>A block that consists of other blocks</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:choice>
	</xsd:group>
	<xsd:complexType name="BlockType">
		<xsd:annotation>
			<xsd:documentation>Base type for any kind of block on the page.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence minOccurs="0">
			<xsd:element name="Shape" type="alto:ShapeType"/>
		</xsd:sequence>
		<xsd:attribute name="ID" use="required">
			<xsd:simpleType>
				<xsd:restriction base="xsd:ID">
					<xsd:pattern value="PAG_\d*_(TB|IL|GE|CB)\d{6}"/>
					<!-- Patch Ph. PRADOS -->
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="STYLEREFS" type="xsd:IDREFS"/>
		<xsd:attribute name="HEIGHT" type="xsd:int" use="required"/>
		<xsd:attribute name="WIDTH" type="xsd:int" use="required"/>
		<xsd:attribute name="HPOS" type="xsd:int" use="required"/>
		<xsd:attribute name="VPOS" type="xsd:int" use="required"/>
		<xsd:attribute name="ROTATION" type="xsd:float" use="optional">
			<xsd:annotation>
				<xsd:documentation>Tells the rotation of the block e.g. text or illustration. The value is in degree counterclockwise.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="IDNEXT" type="xsd:IDREF" use="optional">
			<xsd:annotation>
				<xsd:documentation>The next block in reading sequence on the page.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attributeGroup ref="xlink:simpleLink"/>
	</xsd:complexType>
	<xsd:complexType name="StringType" mixed="false">
		<xsd:annotation>
			<xsd:documentation>A sequence of chars. Strings are separated by white spaces or hyphenation chars.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence minOccurs="0">
			<xsd:element name="ALTERNATIVE" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Any alternative for the word.</xsd:documentation>
				</xsd:annotation>
				<xsd:complexType>
					<xsd:simpleContent>
						<xsd:extension base="xsd:string">
							<xsd:attribute name="PURPOSE" type="xsd:string" use="optional">
								<xsd:annotation>
									<xsd:documentation>Identifies the purpose of the alternative.</xsd:documentation>
								</xsd:annotation>
							</xsd:attribute>
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>
		</xsd:sequence>
		<xsd:attribute name="ID" use="required">
			<xsd:simpleType>
				<xsd:restriction base="xsd:ID">
					<xsd:pattern value="PAG_\d*_ST\d{6}"/>
					<!-- Patch Ph. PRADOS -->
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="required">
			<xsd:annotation>
				<xsd:documentation>Modification LAD du 28 février 2006</xsd:documentation>
				<xsd:documentation>Attribut rendu obligatoire.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="HEIGHT" type="xsd:float" use="required"/>
		<xsd:attribute name="WIDTH" type="xsd:float" use="required"/>
		<xsd:attribute name="HPOS" type="xsd:float" use="required"/>
		<xsd:attribute name="VPOS" type="xsd:float" use="required"/>
		<xsd:attribute name="CONTENT" type="xsd:string" use="required"/>
		<xsd:attribute name="STYLE" type="alto:fontStylesType" use="optional"/>
		<xsd:attribute name="SUBS_TYPE" use="optional">
			<xsd:annotation>
				<xsd:documentation>Type of the substitution (if any).</xsd:documentation>
			</xsd:annotation>
			<xsd:simpleType>
				<xsd:restriction base="xsd:string">
					<xsd:enumeration value="HypPart1"/>
					<xsd:enumeration value="HypPart2"/>
					<xsd:enumeration value="Abbreviation"/>
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="SUBS_CONTENT" type="xsd:string" use="optional">
			<xsd:annotation>
				<xsd:documentation>Content of the substiution.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="WC" use="required">
			<xsd:annotation>
				<xsd:documentation>Modification LAD du 28 fvrier 2006</xsd:documentation>
				<xsd:documentation>Attribut rendu obligatoire.</xsd:documentation>
				<xsd:documentation>Word Confidence: Confidence level of the ocr for this string. A value between 0 and 1.  </xsd:documentation>
			</xsd:annotation>
			<xsd:simpleType>
				<xsd:restriction base="xsd:float">
					<xsd:minInclusive value="0"/>
					<xsd:maxInclusive value="1"/>
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="WD" type="xsd:boolean" use="optional">
			<xsd:annotation>
				<xsd:documentation>Ajout du 04 décembre 2007</xsd:documentation>
				<xsd:documentation>Specifies whether the word was found in the dictionary.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="CC" type="xsd:string" use="optional">
			<xsd:annotation>
				<xsd:documentation>Confidence level of each character in that string. A list of numbers, one number between 0 and 9 for each character.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="TYPE" use="optional">
			<xsd:annotation>
				<xsd:documentation>Ajout CLE JPT du 18 janvier 2012</xsd:documentation>
				<xsd:documentation>A controlled string to identify the type of a string element.</xsd:documentation>
			</xsd:annotation>
			<xsd:simpleType>
				<xsd:restriction base="xsd:string">
					<xsd:enumeration value="illegible"/>
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
	</xsd:complexType>
	<xsd:complexType name="PageSpaceType">
		<xsd:annotation>
			<xsd:documentation>A region on a page</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence maxOccurs="unbounded">
			<xsd:group ref="alto:BlockGroup"/>
		</xsd:sequence>
		<xsd:attribute name="ID" use="optional">
			<xsd:simpleType>
				<xsd:restriction base="xsd:ID">
					<xsd:pattern value="PAG_\d*_((Top|Bottom|Left|Right)Margin|PrintSpace)"/>
					<!-- Patch Ph. PRADOS -->
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
		<xsd:attribute name="HEIGHT" type="xsd:float" use="required"/>
		<xsd:attribute name="WIDTH" type="xsd:float" use="required"/>
		<xsd:attribute name="HPOS" type="xsd:float" use="required"/>
		<xsd:attribute name="VPOS" type="xsd:float" use="required"/>
	</xsd:complexType>
	<xsd:simpleType name="PointsType">
		<xsd:annotation>
			<xsd:documentation>A list of points</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<xsd:complexType name="ShapeType">
		<xsd:annotation>
			<xsd:documentation>Describes the bounding shape of a block, if it is not rectangular.</xsd:documentation>
		</xsd:annotation>
		<xsd:choice>
			<xsd:element name="Polygon" type="alto:PolygonType"/>
			<xsd:element name="Ellipse" type="alto:EllipseType"/>
			<xsd:element name="Circle" type="alto:CircleType"/>
		</xsd:choice>
	</xsd:complexType>
	<xsd:complexType name="PolygonType">
		<xsd:annotation>
			<xsd:documentation>A polygon shape.</xsd:documentation>
		</xsd:annotation>
		<xsd:attribute name="POINTS" type="alto:PointsType" use="required"/>
	</xsd:complexType>
	<xsd:complexType name="EllipseType">
		<xsd:annotation>
			<xsd:documentation>An ellipse shape.</xsd:documentation>
		</xsd:annotation>
		<xsd:attribute name="HPOS"/>
		<xsd:attribute name="VPOS"/>
		<xsd:attribute name="HLENGTH"/>
		<xsd:attribute name="VLENGTH"/>
	</xsd:complexType>
	<xsd:complexType name="CircleType">
		<xsd:annotation>
			<xsd:documentation>A circle shape.</xsd:documentation>
		</xsd:annotation>
		<xsd:attribute name="HPOS"/>
		<xsd:attribute name="VPOS"/>
		<xsd:attribute name="RADIUS"/>
	</xsd:complexType>
	<xsd:attributeGroup name="formattingAttributeGroup">
		<xsd:annotation>
			<xsd:documentation>Formatting attributes. Note that these attributes are assumed to be inherited from ancestor elements of the document hierarchy.</xsd:documentation>
		</xsd:annotation>
		<xsd:attribute name="FONTFAMILY" type="xsd:string" use="optional">
			<xsd:annotation>
				<xsd:documentation>The font name.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="FONTTYPE" type="alto:fontTypeType" use="optional"/>
		<xsd:attribute name="FONTWIDTH" type="alto:fontWidthType" use="optional"/>
		<xsd:attribute name="FONTSIZE" type="xsd:float" use="required">
			<xsd:annotation>
				<xsd:documentation>The font size, in points (1/72 of an inch).</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="FONTCOLOR" type="xsd:hexBinary" use="optional">
			<xsd:annotation>
				<xsd:documentation>Font color as RGB value</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="FONTSTYLE" type="alto:fontStylesType" use="optional"/>
	</xsd:attributeGroup>
	<xsd:simpleType name="fontTypeType">
		<xsd:annotation>
			<xsd:documentation>Serif or Sans-Serif</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="serif"/>
			<xsd:enumeration value="sans-serif"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="fontWidthType">
		<xsd:annotation>
			<xsd:documentation>fixed or proportional</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="proportional"/>
			<xsd:enumeration value="fixed"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:complexType name="sourceImageInformationType">
		<xsd:annotation>
			<xsd:documentation>Information to identify the image file from which the OCR text was created.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="fileName">
				<xsd:annotation>
					<xsd:documentation>Modification LAD du 28 février 2006</xsd:documentation>
					<xsd:documentation>Syntaxe contrainte Ã  une sÃ©rie de valeurs attendues</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:pattern value="\d{8}.(TIF|tif|JPG|jpg)"/>
						<!-- Patch Ph. PRADOS -->
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="fileIdentifier" type="alto:fileIdentifierType" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="fileIdentifierType">
		<xsd:annotation>
			<xsd:documentation>A unique identifier for the image file. This is drawn from MIX.</xsd:documentation>
			<xsd:documentation> This identifier must be unique within the local system. To facilitate file sharing or interoperability with other systems, fileIdentifierLocation may be added to designate the system or application where the identifier is unique.</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:string">
				<xsd:attribute name="fileIdentifierLocation">
					<xsd:annotation>
						<xsd:documentation>A location qualifier, i.e., a namespace.</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<xsd:complexType name="ocrProcessingType">
		<xsd:annotation>
			<xsd:documentation>Information on how the text was created, including preprocessing, OCR processing, and postprocessing steps.</xsd:documentation>
			<xsd:documentation>Where possible, this draws from MIX's change history.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="preProcessingStep" type="alto:processingStepType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="ocrProcessingStep" type="alto:processingStepType"/>
			<xsd:element name="postProcessingStep" type="alto:processingStepType" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="processingStepType">
		<xsd:annotation>
			<xsd:documentation>A processing step.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="processingDateTime" type="alto:dateTimeType">
				<xsd:annotation>
					<xsd:documentation>Date or DateTime the image was processed.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="processingAgency" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Identifies the organizationlevel producer(s) of the processed image.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="processingStepDescription" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>An ordinal listing of the image processing steps performed. For example, "image despeckling."</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="processingStepSettings" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>A description of any setting of the processing application. For example, for a multi-engine OCR application this might include the engines which were used. Ideally, this description should be adequate so that someone else using the same application can produce identical results.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="processingSoftware" type="alto:processingSoftwareType" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="processingSoftwareType">
		<xsd:annotation>
			<xsd:documentation>Information about a software application. Where applicable, the preferred method for determining this information is by selecting Help --> About.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="softwareCreator" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The name of the organization or company that created the application.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="softwareName" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The name of the application.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="softwareVersion" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The version of the application.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="applicationDescription" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>A description of any important characteristics of the application, especially for non-commercial applications. For example, if a non-commercial application is built using commercial components, e.g., an OCR engine SDK. Those components should be mentioned here.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:simpleType name="dateTimeType">
		<xsd:union memberTypes="xsd:date xsd:dateTime xsd:gYear xsd:gYearMonth"/>
	</xsd:simpleType>
	<xsd:simpleType name="fontStylesType">
		<xsd:annotation>
			<xsd:documentation>List of  any combination of font styles</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction>
			<xsd:simpleType>
				<xsd:list>
					<xsd:simpleType>
						<xsd:restriction base="xsd:string">
							<xsd:enumeration value="bold"/>
							<xsd:enumeration value="italics"/>
							<xsd:enumeration value="subscript"/>
							<xsd:enumeration value="superscript"/>
							<xsd:enumeration value="smallcaps"/>
							<xsd:enumeration value="underline"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:list>
			</xsd:simpleType>
			<xsd:minLength value="1"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:complexType name="ComposedBlockType">
		<xsd:annotation>
			<xsd:documentation>A block that consists of other blocks</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="alto:BlockType">
				<xsd:sequence minOccurs="0" maxOccurs="unbounded">
					<xsd:group ref="alto:BlockGroup"/>
				</xsd:sequence>
				<xsd:attribute name="TYPE" type="xsd:string" use="optional">
					<xsd:annotation>
						<xsd:documentation>A user defined string to identify the type of composed block (e.g. table, advertisement, ...)</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
				<xsd:attribute name="FILEID" type="xsd:string" use="optional">
					<xsd:annotation>
						<xsd:documentation>An ID to link to an image which contains only the composed block. The ID and the file link is defined in the related METS file.</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="IllustrationType">
		<xsd:annotation>
			<xsd:documentation>A picture or image.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="alto:BlockType">
				<xsd:attribute name="TYPE" type="xsd:string" use="optional">
					<xsd:annotation>
						<xsd:documentation>A user defined string to identify the type of illustration like photo, map, drawing, chart, ...</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
				<xsd:attribute name="FILEID" type="xsd:IDREF" use="optional">
					<xsd:annotation>
						<xsd:documentation>A link to an image which contains only the illustration.</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="GraphicalElementType">
		<xsd:annotation>
			<xsd:documentation>A graphic used to separate blocks. Usually a line or rectangle. </xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="alto:BlockType">
				<xsd:attribute name="TYPE" type="xsd:string" use="optional">
					<xsd:annotation>
						<xsd:documentation>Ajout LAD du 7 novombre 2005</xsd:documentation>
						<xsd:documentation>A user defined string to identify the type of graphical element.</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="TextBlockType">
		<xsd:annotation>
			<xsd:documentation>A block of text.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="alto:BlockType">
				<xsd:sequence minOccurs="0">
					<xsd:element name="TextLine" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation>A single line of text.</xsd:documentation>
						</xsd:annotation>
						<xsd:complexType>
							<xsd:sequence>
								<xsd:sequence maxOccurs="unbounded">
									<xsd:element name="String" type="alto:StringType"/>
									<xsd:element name="SP" minOccurs="0">
										<xsd:annotation>
											<xsd:documentation>A white space.</xsd:documentation>
										</xsd:annotation>
										<xsd:complexType>
											<xsd:attribute name="ID" use="required">
												<xsd:simpleType>
													<xsd:restriction base="xsd:ID">
														<xsd:pattern value="PAG_\d*_SP\d{6}"/>
														<!-- Patch Ph. PRADOS -->
													</xsd:restriction>
												</xsd:simpleType>
											</xsd:attribute>
											<xsd:attribute name="WIDTH" type="xsd:float" use="required"/>
											<xsd:attribute name="HPOS" type="xsd:float" use="required"/>
											<xsd:attribute name="VPOS" type="xsd:float" use="required"/>
										</xsd:complexType>
									</xsd:element>
								</xsd:sequence>
								<xsd:element name="HYP" minOccurs="0">
									<xsd:annotation>
										<xsd:documentation>A hyphenation char. Can appear only at the end of a line.</xsd:documentation>
									</xsd:annotation>
									<xsd:complexType>
										<xsd:attribute name="WIDTH" type="xsd:float" use="required"/>
										<xsd:attribute name="HPOS" type="xsd:float" use="required"/>
										<xsd:attribute name="VPOS" type="xsd:float" use="required"/>
										<xsd:attribute name="CONTENT" use="required"/>
									</xsd:complexType>
								</xsd:element>
							</xsd:sequence>
							<xsd:attribute name="ID">
								<xsd:simpleType>
									<xsd:restriction base="xsd:ID">
										<xsd:pattern value="PAG_\d*_TL\d{6}"/>
										<!-- Patch Ph. PRADOS -->
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:attribute>
							<xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
							<xsd:attribute name="HEIGHT" type="xsd:float" use="required"/>
							<xsd:attribute name="WIDTH" type="xsd:float" use="required"/>
							<xsd:attribute name="HPOS" type="xsd:float" use="required"/>
							<xsd:attribute name="VPOS" type="xsd:float" use="required"/>
							<xsd:attribute name="BASELINE" type="xsd:float" use="optional"/>
						</xsd:complexType>
					</xsd:element>
				</xsd:sequence>
				<xsd:attribute name="TYPE" type="xsd:string" use="optional">
					<xsd:annotation>
						<xsd:documentation>Ajout LAD du 7 novombre 2005</xsd:documentation>
						<xsd:documentation>A user defined string to identify the type of text block.</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
				<xsd:attribute name="language" type="xsd:language" use="optional"/>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
</xsd:schema>
