<?xml version = "1.0" encoding = "UTF-8"?>
<xsd:schema xmlns = "http://www.ddb.de/LMERfile"
	 targetNamespace = "http://www.ddb.de/LMERfile"
	 xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
	 xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
	 version = "1.2"
	 elementFormDefault = "qualified"
	 xsi:schemaLocation = "http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd">

	<!-- LMER: Long-term preservation Metadata for Electronic Resources -->
	<!-- Copyright 2005 Die Deutsche Bibliothek -->

	<xsd:element name = "fileIdentifier" type = "xsd:string">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Eindeutige Kennung der zugehÃ¶rigen Datei</xsd:documentation>
			<xsd:documentation xml:lang = "en">An internal identifier assigned to a digital file.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "path" type = "xsd:string">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Ordnerstruktur, in dem die Datei stehen muss, damit sie nutzbar ist</xsd:documentation>
			<xsd:documentation xml:lang = "en">The directory path within a complex object that point to this file.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "name" type = "xsd:string">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">VollstÃ¤ndiger Name der Datei (ohne Verzeichnis)</xsd:documentation>
			<xsd:documentation xml:lang = "en">The name of the file as it is held in the digital archive.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "size" type = "xsd:positiveInteger">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">GrÃ¶ÃŸe der Datei in Bytes</xsd:documentation>
			<xsd:documentation xml:lang = "en">The size of the file in bytes.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "fileDateTime" type = "xsd:dateTime">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Datum (und Zeit) der Entstehung der Datei</xsd:documentation>
			<xsd:documentation xml:lang = "en">Date/Time that this file was created.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "fileChecksum">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Checksumme der Datei</xsd:documentation>
			<xsd:documentation xml:lang = "en">Checksum of the file</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base = "xsd:string">
					<xsd:attribute name = "CHECKSUMTYPE" use = "optional" type = "xsd:string"/>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name = "mimeType" type = "mimeType">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Beschreibung des Formats der Datei nach dem MIME-Standard</xsd:documentation>
			<xsd:documentation xml:lang = "en">The Multipurpose Internet Mail Extensions Type for the file expressed as type/subtype.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "format">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Bezeichnung des Formats der Datei als exakte Referenz in eine externe Datenbank</xsd:documentation>
			<xsd:documentation xml:lang = "en">The format of the file as reference to an external repository.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base = "xsd:string">
					<xsd:attribute name = "REGISTRYNAME" use = "optional" type = "xsd:string"/>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name = "formatInfos" type = "xsd:string">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">ZusÃ¤tzliche Informationen zur exakten Formatbestimmung</xsd:documentation>
			<xsd:documentation xml:lang = "en">Additional informations about the format of the file.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "creatorApplication" type = "xsd:string">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Bezeichnung des Erstellungsprogramms der Datei, idealerweise als exakte Referenz in eine externe Datenbank</xsd:documentation>
			<xsd:documentation xml:lang = "en">Name of the used program for creation of this file (could be a reference to an external repository).</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "viewerApplication" type = "xsd:string">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Bezeichnung eines Darstellungsprogramms der Datei, idealerweise als exakte Referenz in eine externe Datenbank</xsd:documentation>
			<xsd:documentation xml:lang = "en">Name of an usable viewer for this file (could be a reference to an external repository).</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "linkedTo" type = "xsd:string">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">AbhÃ¤ngigkeiten einer anderen Datei des gleichen Objekts (als ID)</xsd:documentation>
			<xsd:documentation xml:lang = "en">Dependeces on another file of the same object (as ID)</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "comments" type = "xsd:string">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">ErgÃ¤nzende Kommentare</xsd:documentation>
			<xsd:documentation xml:lang = "en">Additional informations about this file.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name = "category">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Bezeichnung des Typs der Datei und zugleich Indikator, fÃ¼r die weiteren Metadaten</xsd:documentation>
			<xsd:documentation xml:lang = "en">Type of the file. Depending on this special metadata could follow (e. g. using MIX).</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleType>
			<xsd:restriction base = "xsd:string">
				<xsd:enumeration value = "text"/>
				<xsd:enumeration value = "notes"/>
				<xsd:enumeration value = "image"/>
				<xsd:enumeration value = "audio"/>
				<xsd:enumeration value = "video"/>
				<xsd:enumeration value = "multimedia"/>
				<xsd:enumeration value = "data"/>
				<xsd:enumeration value = "binary"/>
			</xsd:restriction>
		</xsd:simpleType>
	</xsd:element>
	<xsd:element name = "xmlData">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Block mit vom Format abhÃ¤ngigen technischen Metadaten</xsd:documentation>
			<xsd:documentation xml:lang = "en">Special metadata for this type of file.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:any namespace = "##any" processContents = "strict" minOccurs = "0" maxOccurs = "unbounded"/>
			</xsd:sequence>
			<xsd:attribute name = "ID" type = "xsd:ID"/>
			<xsd:attribute name = "MDTYPE" use = "required" type = "xsd:string"/>
		</xsd:complexType>
	</xsd:element>
	<xsd:simpleType name = "mimeType">
		<xsd:annotation>
			<xsd:documentation xml:lang = "de">Der MIME-Type wird Ã¼ber einen regulÃ¤ren Ausdruck definiert.</xsd:documentation>
			<xsd:documentation xml:lang = "en">A mime type's value is governed by a pattern</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base = "xsd:string">
			<xsd:pattern value = "[\p{L}|\p{P}|\d]+/[\p{L}|\p{P}|\d]+"/>
		</xsd:restriction>
	</xsd:simpleType>
</xsd:schema>
