changeset 1:2267d8c80a99

intial
author dwinter
date Sun, 23 Oct 2011 21:29:45 +0200
parents 90a19cbda471
children 38d823b66aff
files .classpath .externalToolBuilders/org.eclipse.wst.validation.validationbuilder.launch .project libs/org.apache.httpclient.jar libs/org.apache.httpcore.jar libs/org.apache.httpmime.jar libs/org.json.jar libs/org.restlet.ext.json.jar libs/org.restlet.ext.servlet.jar libs/org.restlet.jar libs/xercesImpl-2.9.1.jar src/de/mpiwg/itgroup/metadataManager/client/MetadataClient.java src/de/mpiwg/itgroup/metadataManager/indexMeta/server/IndexMetaProvider.java src/de/mpiwg/itgroup/metadataManager/validation/IndexMetaValidator.java src/de/mpiwg/itgroup/metadataManager/validation/data/2011-05-04_index_meta.xsd src/de/mpiwg/itgroup/metadataManager/validation/data/index_meta.xsd src/de/mpiwg/itgroup/metadataManager/validation/data/sample-index-meta.xml
diffstat 17 files changed, 3618 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.classpath	Wed Nov 24 16:54:52 2010 +0100
+++ b/.classpath	Sun Oct 23 21:29:45 2011 +0200
@@ -8,6 +8,14 @@
 	<classpathentry kind="lib" path="libs/log4j-1.2.15.jar"/>
 	<classpathentry kind="lib" path="libs/xmlrpc-client-3.1.2.jar"/>
 	<classpathentry kind="lib" path="libs/xmlrpc-common-3.1.2.jar"/>
+	<classpathentry kind="lib" path="libs/org.json.jar"/>
+	<classpathentry kind="lib" path="libs/org.restlet.ext.json.jar"/>
+	<classpathentry kind="lib" path="libs/org.restlet.ext.servlet.jar"/>
+	<classpathentry kind="lib" path="libs/org.restlet.jar"/>
+	<classpathentry kind="lib" path="libs/org.apache.httpclient.jar"/>
+	<classpathentry kind="lib" path="libs/org.apache.httpcore.jar"/>
+	<classpathentry kind="lib" path="libs/org.apache.httpmime.jar"/>
+	<classpathentry kind="lib" path="libs/xercesImpl-2.9.1.jar"/>
 	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.externalToolBuilders/org.eclipse.wst.validation.validationbuilder.launch	Sun Oct 23 21:29:45 2011 +0200
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.wst.validation.validationbuilder"/>
+<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+</launchConfiguration>
--- a/.project	Wed Nov 24 16:54:52 2010 +0100
+++ b/.project	Sun Oct 23 21:29:45 2011 +0200
@@ -16,8 +16,13 @@
 			</arguments>
 		</buildCommand>
 		<buildCommand>
-			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
+			<triggers>full,incremental,</triggers>
 			<arguments>
+				<dictionary>
+					<key>LaunchConfigHandle</key>
+					<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.wst.validation.validationbuilder.launch</value>
+				</dictionary>
 			</arguments>
 		</buildCommand>
 	</buildSpec>
Binary file libs/org.apache.httpclient.jar has changed
Binary file libs/org.apache.httpcore.jar has changed
Binary file libs/org.apache.httpmime.jar has changed
Binary file libs/org.json.jar has changed
Binary file libs/org.restlet.ext.json.jar has changed
Binary file libs/org.restlet.ext.servlet.jar has changed
Binary file libs/org.restlet.jar has changed
Binary file libs/xercesImpl-2.9.1.jar has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/de/mpiwg/itgroup/metadataManager/client/MetadataClient.java	Sun Oct 23 21:29:45 2011 +0200
@@ -0,0 +1,123 @@
+package de.mpiwg.itgroup.metadataManager.client;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.io.UnsupportedEncodingException;
+import java.net.URI;
+import java.net.URISyntaxException;
+
+import javax.xml.parsers.SAXParser;
+
+import org.apache.http.HttpEntity;
+import org.apache.http.HttpResponse;
+import org.apache.http.client.ClientProtocolException;
+import org.apache.http.client.HttpClient;
+import org.apache.http.client.methods.HttpGet;
+import org.apache.http.client.utils.URIUtils;
+import org.apache.http.impl.client.DefaultHttpClient;
+import org.jdom.Document;
+import org.jdom.Element;
+import org.jdom.JDOMException;
+import org.jdom.input.SAXBuilder;
+import org.jdom.output.XMLOutputter;
+import org.jdom.xpath.XPath;
+import org.json.JSONObject;
+import org.json.JSONTokener;
+
+import org.restlet.data.MediaType;
+import org.restlet.representation.Representation;
+import org.restlet.resource.ClientResource;
+
+public class MetadataClient {
+
+	private String serverUrl;
+
+	public MetadataClient(String string) {
+		serverUrl = string;
+		
+	}
+ 
+	public String replaceBIB(String idOfObject, String newBibTag, boolean save) throws URISyntaxException, ClientProtocolException, IOException {
+		
+		String newIM=null;
+		SAXBuilder sb = new SAXBuilder();		
+		
+		String url = serverUrl+"indexMeta/permanent/library/"+idOfObject;
+		
+		HttpClient httpclient = new DefaultHttpClient();
+	
+		HttpGet httpget = new HttpGet(new URI(url));
+		
+		HttpResponse response = httpclient.execute(httpget);
+		HttpEntity entity = response.getEntity();
+		
+		try {
+			if (entity != null) {
+			    InputStream instream = (InputStream) entity.getContent();
+			    Document dom = sb.build(instream);
+
+			    XPath xp =XPath.newInstance("//bib");
+			    Element bibNode = (Element)xp.selectSingleNode(dom);
+			    
+			    Document doc2 = sb.build(new StringReader(newBibTag));
+			    Element newBibRoot=doc2.getRootElement();
+			   
+			    Element bibPar=(Element) bibNode.getParent();
+			    bibPar.removeContent(bibNode);
+			    bibPar.addContent((Element) newBibRoot.clone());
+			
+			    XMLOutputter op = new XMLOutputter();
+			    newIM = op.outputString(dom);
+			    if (save){
+			    	//TODO save the new XML
+			    }
+			}
+		} catch (IllegalStateException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		} catch (JDOMException e) {
+			
+			System.err.println("Can't handle:"+ idOfObject);
+			e.printStackTrace();
+			
+		}
+		return newIM;
+	}
+
+	public String addContext(String indexMeta, String link, String name, Boolean save) throws IOException {
+		SAXBuilder sb = new SAXBuilder();	
+		InputStream im = new ByteArrayInputStream(indexMeta.getBytes("utf-8"));
+		try {
+			Document dom =sb.build(im);
+			
+			XPath xp = XPath.newInstance("//meta");
+			Element metaNode=(Element) xp.selectSingleNode(dom);
+			
+			Element  contextElement = new Element("context");
+			
+			Element  linkElement = new Element("link");
+			linkElement.setText(link);
+			Element  nameElement = new Element("name");
+			nameElement.setText(name);
+			contextElement.addContent(linkElement);
+			contextElement.addContent(nameElement);
+			
+			metaNode.addContent(contextElement);
+			
+			  XMLOutputter op = new XMLOutputter();
+			  String newIM = op.outputString(dom);
+			
+			  if (save){
+			    	//TODO save the new XML
+			    }
+			return newIM;
+		} catch (JDOMException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+			return null;
+		}
+	}
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/de/mpiwg/itgroup/metadataManager/indexMeta/server/IndexMetaProvider.java	Sun Oct 23 21:29:45 2011 +0200
@@ -0,0 +1,68 @@
+/**
+ * 
+ */
+package de.mpiwg.itgroup.metadataManager.indexMeta.server;
+
+import java.io.File;
+import java.io.InputStream;
+
+import org.apache.log4j.Logger;
+import org.restlet.data.Form;
+import org.restlet.data.MediaType;
+import org.restlet.data.Status;
+import org.restlet.representation.FileRepresentation;
+import org.restlet.representation.InputRepresentation;
+import org.restlet.representation.Representation;
+import org.restlet.representation.StringRepresentation;
+import org.restlet.resource.Get;
+import org.restlet.resource.Options;
+import org.restlet.resource.ServerResource;
+
+/**
+ * @author dwinter
+ *
+ */
+public class IndexMetaProvider extends ServerResource {
+
+	Logger logger = Logger.getRootLogger();
+	String basePermanentPath="/Volumes/online_permanent/";
+
+/**
+ * Erlaubt cross scripting bei Aufruf aus Javascript
+ * @param entity
+ */
+@Options
+public void doOptions(Representation entity) {
+    Form responseHeaders = (Form) getResponse().getAttributes().get("org.restlet.http.headers");
+    if (responseHeaders == null) {
+        responseHeaders = new Form();
+        getResponse().getAttributes().put("org.restlet.http.headers", responseHeaders);
+    }
+    responseHeaders.add("Access-Control-Allow-Origin", "*");
+    responseHeaders.add("Access-Control-Allow-Methods", "POST,OPTIONS,GET");
+    responseHeaders.add("Access-Control-Allow-Headers", "Content-Type");
+    responseHeaders.add("Access-Control-Allow-Credentials", "false");
+    responseHeaders.add("Access-Control-Max-Age", "60");
+}
+
+@Get("xml")
+public Representation getXML(){
+	logger.debug("getIndexMeta");
+	String restPath = getRequest().getResourceRef().getRemainingPart();
+	
+	String newpath=restPath.replace("/permanent/", basePermanentPath);
+	
+	String indexMetaStr=newpath+"/index.meta";
+	
+	File indexMetaFile = new File(indexMetaStr);
+	
+	if (!indexMetaFile.exists()){
+		getResponse().setStatus(Status.CLIENT_ERROR_NOT_FOUND);
+		logger.debug("file not found");
+		return new StringRepresentation("Can't find:"+indexMetaStr);
+	}
+	
+	return new FileRepresentation(indexMetaStr, MediaType.TEXT_XML);
+	
+}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/de/mpiwg/itgroup/metadataManager/validation/IndexMetaValidator.java	Sun Oct 23 21:29:45 2011 +0200
@@ -0,0 +1,92 @@
+package de.mpiwg.itgroup.metadataManager.validation;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.io.UnsupportedEncodingException;
+
+import org.apache.log4j.Logger;
+import org.jdom.JDOMException;
+import org.jdom.input.SAXBuilder;
+import org.xml.sax.SAXException;
+import org.xml.sax.SAXParseException;
+import org.xml.sax.helpers.DefaultHandler;
+
+public class IndexMetaValidator {
+	
+	private Logger logger = Logger.getRootLogger();
+	
+	public static boolean validate(String indexMeta) throws UnsupportedEncodingException{
+		IndexMetaValidator iv = new IndexMetaValidator();
+		InputStream is = new ByteArrayInputStream(indexMeta.getBytes("utf-8"));
+		
+		String schemaUrl="/Users/dwinter/Documents/Projekte/ECHO-eSciDoc-MPDL/escidocMPIWG/MetaDataManager/src/de/mpiwg/itgroup/metadataManager/validation/data/index_meta.xsd";
+		
+		iv.validateSchema(schemaUrl, is);
+	return false;}
+	
+	
+	
+	public boolean validateSchema(String SchemaUrl, InputStream xmlDocumentStream) {
+		try {      //Create SAXBuilder object
+			SAXBuilder saxBuilder = new SAXBuilder(
+					"org.apache.xerces.parsers.SAXParser", true);
+
+                                      //Set SAXBuilder parser to be a validating parser 
+			saxBuilder.setValidation(true);
+			saxBuilder.setFeature(
+				"http://apache.org/xml/features/validation/schema", true);
+			saxBuilder.setFeature(
+					"http://apache.org/xml/features/validation/schema-full-checking",true);
+			saxBuilder.setProperty(
+					"http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",SchemaUrl);
+
+                                      //Create a ErrorHandler and set ErrorHandler on parser.
+			Validator handler = new Validator();
+			saxBuilder.setErrorHandler(handler);
+                                       //Parse XML Document
+			saxBuilder.build(xmlDocumentStream);
+                                      //Output Validation Errors
+			if (handler.validationError == true){
+				logger.debug("XML Document has Error:"
+						+ handler.validationError + " "
+						+ handler.saxParseException.getMessage());
+			return false;}
+			else{
+				logger.debug("XML Document is valid");
+			return true;}
+			
+		} catch (JDOMException jde) {
+			logger.debug(jde);
+		}
+
+		catch (IOException ioe) {
+		}
+		return false;
+
+	}
+
+            //Error Handler class
+	private class Validator extends DefaultHandler {
+		public boolean validationError = false;
+
+		public SAXParseException saxParseException = null;
+
+		public void error(SAXParseException exception) throws SAXException {
+			validationError = true;
+			saxParseException = exception;
+		}
+
+		public void fatalError(SAXParseException exception) throws SAXException {
+			validationError = true;
+			saxParseException = exception;
+		}
+
+		public void warning(SAXParseException exception) throws SAXException {
+		}
+	}
+
+	
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/de/mpiwg/itgroup/metadataManager/validation/data/2011-05-04_index_meta.xsd	Sun Oct 23 21:29:45 2011 +0200
@@ -0,0 +1,1345 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Turhan Gezer (MPI Wissenschaftsgeschichte) -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+	attributeFormDefault="unqualified">
+	<xs:element name="index_meta">
+		<xs:annotation>
+			<xs:documentation>Comment describing your root element</xs:documentation>
+		</xs:annotation>
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element name="resource">
+					<xs:annotation>
+						<xs:documentation>In this description elements marked “optional” need not be supplied by the provider of the resource and may be absent in all versions of the metadata file. Elements marked “required” must be supplied by the provider of the resource. Elements marked “deduced” can be supplied by the provider of the resource but can also be provided by automatic scripts later in the process, these elements must be present in the final file. File and directory paths in the metadata file use the conventional Unix file separator slash “/”. The outer container element is resource.
+type is sub-type of resource (e.g. “ECHO”, “MPIWG”)
+version is version number of metadata format (currently 1.2)</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="description" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>An informal textual description of the resource (At least one description of the resource’s content is required. The description can be an informal description element or a descriptive element (like bib) in a meta container. )</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="name" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>The filename of the resource (name of the directory this file is contained in)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="creator" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>The name of the pro ject or person that created the resource</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="archive-creation-date" type="xs:date">
+								<xs:annotation>
+									<xs:documentation>The time and date the archive collection was created
+– deduced.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="archive-storage-date" type="xs:date">
+								<xs:annotation>
+									<xs:documentation>The time and date the archive was written to permanent storage – deduced (must not be set by the user).</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="archive-path" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>The full path to the resource directory inside the whole archive collection, including the resource directory – deduced.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="archive-id" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>The ID for this document in the archive</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:choice minOccurs="0">
+								<xs:element name="derived-from">
+									<xs:annotation>
+										<xs:documentation>Container for the description of the original resource if this resource is a modified version of another resource</xs:documentation>
+									</xs:annotation>
+									<xs:complexType>
+										<xs:sequence>
+											<xs:choice>
+												<xs:element name="archive-id" type="xs:string">
+												<xs:annotation>
+												<xs:documentation>The ID of the original resource</xs:documentation>
+												</xs:annotation>
+												</xs:element>
+												<xs:element name="archive-path" type="xs:string">
+												<xs:annotation>
+												<xs:documentation>The full path to the original resource</xs:documentation>
+												</xs:annotation>
+												</xs:element>
+											</xs:choice>
+											<xs:element name="description" type="xs:string"
+												minOccurs="0">
+												<xs:annotation>
+												<xs:documentation>An informal textual description of the relation of this resource to the original resource</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+										</xs:sequence>
+									</xs:complexType>
+								</xs:element>
+								<xs:element name="used-by">
+									<xs:annotation>
+										<xs:documentation>Container for the description of modified resources if this resource is the source of another resource</xs:documentation>
+									</xs:annotation>
+									<xs:complexType>
+										<xs:sequence>
+											<xs:choice>
+												<xs:element name="archive-id" type="xs:string">
+												<xs:annotation>
+												<xs:documentation>The ID of the derived resource</xs:documentation>
+												</xs:annotation>
+												</xs:element>
+												<xs:element name="archive-path" type="xs:string">
+												<xs:annotation>
+												<xs:documentation>The full path to the derived resource</xs:documentation>
+												</xs:annotation>
+												</xs:element>
+											</xs:choice>
+											<xs:element name="description" type="xs:string"
+												minOccurs="0">
+												<xs:annotation>
+												<xs:documentation>An informal textual description of the relation of this resource to the original resource</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+										</xs:sequence>
+									</xs:complexType>
+								</xs:element>
+								<xs:element name="linked-with">
+									<xs:annotation>
+										<xs:documentation>Container for the description of another resource when this resource is a linked copy of another resource</xs:documentation>
+									</xs:annotation>
+									<xs:complexType>
+										<xs:sequence>
+											<xs:choice>
+												<xs:element name="archive-id" type="xs:string">
+												<xs:annotation>
+												<xs:documentation>The ID of the linked resource</xs:documentation>
+												</xs:annotation>
+												</xs:element>
+												<xs:element name="archive-path" type="xs:string">
+												<xs:annotation>
+												<xs:documentation>The full path to the linked resource</xs:documentation>
+												</xs:annotation>
+												</xs:element>
+											</xs:choice>
+											<xs:element name="description" type="xs:string"
+												minOccurs="0">
+												<xs:annotation>
+												<xs:documentation>An informal textual description of the relation of this resource to the linked resource</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+										</xs:sequence>
+									</xs:complexType>
+								</xs:element>
+								<xs:element name="is-part-of">
+									<xs:annotation>
+										<xs:documentation>Container for the description of another resource if this resource is a part of the other resource. It can have a type attribute describing the type of relation. e.g. "manuscript-codex".</xs:documentation>
+									</xs:annotation>
+									<xs:complexType>
+										<xs:sequence>
+											<xs:choice>
+												<xs:element name="archive-id" type="xs:string">
+												<xs:annotation>
+												<xs:documentation>The ID of the original resource</xs:documentation>
+												</xs:annotation>
+												</xs:element>
+												<xs:element name="archive-path" type="xs:string">
+												<xs:annotation>
+												<xs:documentation>The full path to the original resource</xs:documentation>
+												</xs:annotation>
+												</xs:element>
+											</xs:choice>
+											<xs:element name="description" type="xs:string"
+												minOccurs="0">
+												<xs:annotation>
+												<xs:documentation>An informal textual description of the relation of this resource to the original resource</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+										</xs:sequence>
+										<xs:attribute name="type" type="xs:string" use="optional"/>
+									</xs:complexType>
+								</xs:element>
+							</xs:choice>
+							<xs:element name="media-type">
+								<xs:annotation>
+									<xs:documentation>The main media type of this resource.
+The main media type can be overridden by media-types in subdirectories. 
+Possible types are: image, text, audio, video and data for other type of data </xs:documentation>
+								</xs:annotation>
+								<xs:simpleType>
+									<xs:restriction base="xs:string">
+										<xs:enumeration value="image"/>
+										<xs:enumeration value="text"/>
+										<xs:enumeration value="audio"/>
+										<xs:enumeration value="video"/>
+										<xs:enumeration value="data"/>
+									</xs:restriction>
+								</xs:simpleType>
+							</xs:element>
+							<xs:element ref="meta" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>Additional metadata information about the resource</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="dir">
+								<xs:annotation>
+									<xs:documentation>Container for the description of a subdirectory (when there are subdirectories). dir tags should not be nested. Directories at lower levels are identified by their path.</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="name" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>The name of the subdirectory</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="description" type="xs:string"
+											minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>An informal textual description of the subdirectory</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="original-name" type="xs:string"
+											minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>A text string associated with the directory as original name. (E.g. if the data in this directory came from an external source and had a name that had to be changed according to section 1 but it should be possible to reference the original name.)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="path" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>The directory path of this subdirectory relative to the resource’s root directory (excluding the directory itself ). (may be 
+empty or omitted if the directory is a direct child of the resource’s 
+root directory). </xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="meta" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>Additional metadata information about the directory</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+									</xs:sequence>
+								</xs:complexType>
+							</xs:element>
+							<xs:element name="file">
+								<xs:annotation>
+									<xs:documentation>Container for the description of a file – deduced. 
+file tags should not be nested in dir tags. Files at lower directory levels are identified by their path.</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="name" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>The name of the file</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="description" type="xs:string"
+											minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>An informal textual description of the file</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="original-name" type="xs:string"
+											minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>A text string associated with the file as original name. (e.g. if this file came from an external source and had a name that had to be changed according to section 1 it is possible to preserve the original name.)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="path" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>The directory path of this file relative to the resource's root directory (excluding the file itself). (may be empty or omitted if the file is in the resource’s root directory).</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="date" type="xs:date" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>The file’s modification or creation date, whichever is more recent</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="modification-date" type="xs:date"
+											minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>The file’s modification date</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="creation-date" type="xs:date"
+											minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>The file’s creation date</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="size" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>The file size – deduced.</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="mime-type" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>The file’s mime-type</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="md5cs" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>MD5 checksum of the file content</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="meta" minOccurs="0"/>
+									</xs:sequence>
+								</xs:complexType>
+							</xs:element>
+						</xs:sequence>
+						<xs:attribute name="type" use="optional">
+							<xs:simpleType>
+								<xs:restriction base="xs:string"/>
+							</xs:simpleType>
+						</xs:attribute>
+						<xs:attribute name="version" type="xs:string" use="required"/>
+					</xs:complexType>
+				</xs:element>
+			</xs:sequence>
+		</xs:complexType>
+	</xs:element>
+	<xs:attribute name="workflow-state">
+		<xs:simpleType>
+			<xs:restriction base="xs:string">
+				<xs:enumeration value="preliminary"/>
+				<xs:enumeration value="inwork"/>
+				<xs:enumeration value="final"/>
+			</xs:restriction>
+		</xs:simpleType>
+	</xs:attribute>
+	<xs:element name="meta">
+		<xs:annotation>
+			<xs:documentation>All additional metadata elements can have a workflow-state attribute. This attribute reflects the state of the corresponding metadata element. The possible values for the workflow-state attribute are
+• preliminary this information is preliminary. It must be checked in further workflow steps.
+• inwork
+• final
+workflow states other than preliminary are part of the workflow handling of the respective projects.
+Metadata elements can appear multiple times with different workflow-state-attributes. This enables metadata versioning.</xs:documentation>
+		</xs:annotation>
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element name="content-type" type="xs:string" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>The content type of this resource. The content type enables the choice of tools to manipulate and display the resource. There should be a common list of content types. For digital documents (books, manuscripts) this would be “scanned document”, for other image data “scanned images”. The criterion for documents is an ordered succession of image files (pages) and equal image size and resolution throughout the images of a resource.</xs:documentation>
+					</xs:annotation>
+				</xs:element>
+				<xs:element name="lang" type="xs:language" minOccurs="0" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>The language of a resource (e.g. a text) can be specified with a lang tag. Languages have to be described using the international codes for the representation of names of languages either in two-letter form (ISO 639-1) or in three-letter form (ISO 639-2). The entire catalogue of languages is documented on the page http://www.loc.gov/standards/iso639- 2/englangn.html</xs:documentation>
+					</xs:annotation>
+				</xs:element>
+				<xs:element name="dri" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>The digital resource identifier for the resource is specified in a dri element. Digital resource identifiers are documented on the page http://pythia.mpiwg-berlin.mpg.de/projects/standards/dri. </xs:documentation>
+					</xs:annotation>
+				</xs:element>
+				<xs:element name="context" minOccurs="0" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>The context of a resource as part of a collection or part of a pro ject can be specified in the context element. The context element can appear multiple times if the resource is part of multiple collections or pro jects.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="link" type="xs:anyURI" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>URL to additional context information</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="name" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>Textual description of pro ject or collection</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="meta-datalink" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>description of external sources of canonical meta information
+- db attribute to identify different sets of meta data links to the same resource
+- object attribute to identify different objects or parts of the same resource</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="label" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>textual label for the link</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="url" minOccurs="0"/>
+										<xs:element name="metadata-url" type="xs:anyURI"
+											minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>URL to an external server to be queried</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+									</xs:sequence>
+									<xs:attribute name="db" type="xs:string" use="optional"/>
+									<xs:attribute name="object" type="xs:string" use="optional"/>
+								</xs:complexType>
+							</xs:element>
+							<xs:element name="meta-baselink" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>description of external server for canonical meta information. 
+- db attribute to identify different sets of meta data links to the same resource</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="label" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>textual label for the link</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="url" minOccurs="0"/>
+										<xs:element name="metadata-url">
+											<xs:annotation>
+												<xs:documentation>URL to an external server to be queried
+(the parameter object= with an object id has to be appended to this URL) </xs:documentation>
+											</xs:annotation>
+											<xs:complexType>
+												<xs:simpleContent>
+												<xs:extension base="xs:anyURI">
+												<xs:attribute name="object" type="xs:string"
+												use="required"/>
+												</xs:extension>
+												</xs:simpleContent>
+											</xs:complexType>
+										</xs:element>
+									</xs:sequence>
+									<xs:attribute name="db" type="xs:string" use="optional"/>
+								</xs:complexType>
+							</xs:element>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="bib">
+					<xs:annotation>
+						<xs:documentation>Comment describing your root element</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element minOccurs="0" ref="abstract"/>
+							<xs:element minOccurs="0" name="academic-department" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Name of the academic department where the thesis was handed in.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" name="alternate-journal" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Alternate journal</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element maxOccurs="unbounded" minOccurs="0" ref="author"/>
+							<xs:element minOccurs="0" ref="binding"/>
+							<xs:element minOccurs="0" ref="book-title"/>
+							<xs:element minOccurs="0" ref="call-number"/>
+							<xs:element minOccurs="0" name="catchwords" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Quire signatures and catchwords</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element maxOccurs="unbounded" minOccurs="0" ref="city"/>
+							<xs:element minOccurs="0" name="collation-corrections" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Notes on collation and corrections.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" name="conference-location" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>City where the conference was held.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" name="conference-name" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Name of the conference the proceedings are related to.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" ref="contents"/>
+							<xs:element maxOccurs="unbounded" minOccurs="0" name="copyist"
+								type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Copyist</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" ref="date"/>
+							<xs:element minOccurs="0" name="date-original">
+								<xs:annotation>
+									<xs:documentation>the date in its original form as noted on the letter</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" name="date-range-end">
+								<xs:annotation>
+									<xs:documentation>end of range of uncertain dating</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" ref="description"/>
+							<xs:element minOccurs="0" name="dimensions" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Height and width in cm</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" ref="edition"/>
+							<xs:element maxOccurs="unbounded" minOccurs="0" ref="editor"/>
+							<xs:element minOccurs="0" ref="editorial-remarks"/>
+							<xs:element minOccurs="0" ref="explicit"/>
+							<xs:element minOccurs="0" ref="foliation"/>
+							<xs:element minOccurs="0" ref="holding-library"/>
+							<xs:element minOccurs="0" ref="incipit"/>
+							<xs:element minOccurs="0" name="institution">
+								<xs:annotation>
+									<xs:documentation>Institution where the report was produced.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element maxOccurs="unbounded" minOccurs="0" ref="isbn-issn"/>
+							<xs:element minOccurs="0" ref="issue"/>
+							<xs:element minOccurs="0" name="issue-date" type="xs:date">
+								<xs:annotation>
+									<xs:documentation>Date of the issue the article is part of. Only in bib type="newspaper-article"</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" name="journal" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Name of the journal</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" ref="keywords"/>
+							<xs:element minOccurs="0" name="lines-per-page" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Number of lines and columns.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" ref="location"/>
+							<xs:element minOccurs="0" ref="title"/>
+							<xs:element minOccurs="0" name="magazine" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Name of the magazine.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" name="newspaper" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Name of the newspaper the article appeared in.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" ref="notes"/>
+							<xs:element minOccurs="0" ref="notes-on-ownership"/>
+							<xs:element minOccurs="0" ref="number-of-folios"/>
+							<xs:element minOccurs="0" ref="number-of-pages"/>
+							<xs:element minOccurs="0" ref="number-of-volumes"/>
+							<xs:element minOccurs="0" name="page-dimensions" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Height and width of page in cm.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" ref="pages"/>
+							<xs:element minOccurs="0" ref="publisher"/>
+							<xs:element minOccurs="0" name="recipient">
+								<xs:annotation>
+									<xs:documentation>The recipient of the letter.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" name="report-number">
+								<xs:annotation>
+									<xs:documentation>Report number</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" name="scripts" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Description of the script and the ink used.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element maxOccurs="unbounded" minOccurs="0"
+								name="secondary-literature" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Notes on secondary literature related to the manuscript</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element maxOccurs="unbounded" minOccurs="0" ref="series-editor"/>
+							<xs:element minOccurs="0" ref="series-title"/>
+							<xs:element minOccurs="0" ref="series-volume"/>
+							<xs:element minOccurs="0" ref="signature"/>
+							<xs:element maxOccurs="unbounded" minOccurs="0" ref="translator"/>
+							<xs:element minOccurs="0" name="university" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Name of the university where the thesis was handed in.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" ref="volume"/>
+							<xs:element minOccurs="0" name="writing-surface" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>material of the writing surface (e.g. “non-european paper”, “palm leaf ”,. . . )</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" name="written-area-dimensions"
+								type="xs:string">
+								<xs:annotation>
+									<xs:documentation>Height and width of written area in cm.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element minOccurs="0" ref="year"/>
+						</xs:sequence>
+						<xs:attribute name="type">
+							<xs:simpleType>
+								<xs:restriction base="xs:string">
+									<xs:enumeration value="book"/>
+									<xs:enumeration value="inbook"/>
+									<xs:enumeration value="proceedings"/>
+									<xs:enumeration value="edited-book"/>
+									<xs:enumeration value="journal-volume"/>
+									<xs:enumeration value="journal-article"/>
+									<xs:enumeration value="magazine-article"/>
+									<xs:enumeration value="newspaper-article"/>
+									<xs:enumeration value="thesis"/>
+									<xs:enumeration value="report"/>
+									<xs:enumeration value="manuscript"/>
+									<xs:enumeration value="extended-manuscript"/>
+									<xs:enumeration value="codex"/>
+									<xs:enumeration value="correspondence"/>
+									<xs:enumeration value="generic"/>
+								</xs:restriction>
+							</xs:simpleType>
+						</xs:attribute>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="doc" minOccurs="0">
+					<xs:annotation>
+						<xs:documentation>Specific information for architectural drawings is presented in a doc container 
+with an additional type attribute giving the type of drawing. All elements inside 
+the container can appear multiple times. </xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="person" type="xs:string" minOccurs="0"
+								maxOccurs="unbounded">
+								<xs:annotation>
+									<xs:documentation>last name and first name of a person, separated by a comma. A further common name for the person can be put infront, separated by a semicolon.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="location" type="xs:string" minOccurs="0"
+								maxOccurs="unbounded">
+								<xs:annotation>
+									<xs:documentation>Name of a place in its common notation. This can be a city or a institution. </xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="date" type="xs:gYear" minOccurs="0"
+								maxOccurs="unbounded">
+								<xs:annotation>
+									<xs:documentation>This can be a year (or several years, separated by commas) or a period (1706-1714). Years are noted with four digits.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="object" type="xs:string" minOccurs="0"
+								maxOccurs="unbounded">
+								<xs:annotation>
+									<xs:documentation>Short description of an object or signatures.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element ref="keywords" minOccurs="0" maxOccurs="unbounded"/>
+						</xs:sequence>
+						<xs:attribute name="type" use="required" fixed="Architectural Drawing">
+							<xs:simpleType>
+								<xs:restriction base="xs:string"/>
+							</xs:simpleType>
+						</xs:attribute>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="toc" minOccurs="0" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>Information on the structure of a document like the division into parts and chapters in the way of a table of contents is presented in a toc container. 
+The scheme allows multiple logical pages on a single page image as it is often the case with scanned books or manuscripts. The scheme also allows for “loose” numbering schemes with roman, arabic or other page numbers consecutively or mixed and changes in the numbering within the document.
+The flexibility comes from the fact that no additional assumptions about the 
+mapping between logical pages and page images are made in the format. All mapping information is specified by the user. 
+The logical page numbering or naming that can be presented to the user is 
+specified in the name tags while the physical numbering of the page images is specified in the index or url tags.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="page">
+								<xs:annotation>
+									<xs:documentation>describes a single logical page</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="name" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>the “name” of the logical page. This can be any string like a page number (arabic, roman, etc.) or a special designation like “Table 5”. </xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="index" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>the digilib index number of the scan image of the page. (The index number for digilib is the index in the alphabetical order of the scan file names.)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="url">
+											<xs:annotation>
+												<xs:documentation>alternatively to the digilib index number the full URL of the scan image of the page can be used. </xs:documentation>
+											</xs:annotation>
+										</xs:element>
+									</xs:sequence>
+								</xs:complexType>
+							</xs:element>
+							<xs:element ref="chapter"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="img">
+					<xs:complexType>
+						<xs:choice>
+							<xs:annotation>
+								<xs:documentation>Image files representing scanned images can have an img container tag with 
+information about the scan resolution and the size of the original image. This 
+information is used by the digilib image viewing tool. 
+Required is one of three possible sets of tags:</xs:documentation>
+							</xs:annotation>
+							<xs:sequence>
+								<xs:element name="original-size-x" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The width of the original image. 
+The unit of measure can be contained as parameter unit, the default is meter “m”. The width to be considered is the total width of the scanned area.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-size-y" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The height of the original image.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-x" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The width of the hi-res scan in pixels.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-y" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The height of the hi-res scan in pixels</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element name="original-dpi" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The resolution of the hi-res scan in pixels per inch if the 
+resolutions in width and height are the same</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-x" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The width of the hi-res scan in pixels - deduced.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-y" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The height of the hi-res scan in pixels – deduced.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element name="original-dpi-x" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The resolution of the hi-res scan in its width in pixels per 
+inch</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-dpi-y" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The resolution of the hi-res scan in its height in pixels per 
+inch</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-x" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The width of the hi-res scan in pixels - deduced.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-y" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The height of the hi-res scan in pixels – deduced.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+							</xs:sequence>
+						</xs:choice>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="image-acquisition" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>A description of the technology used in the process of producing a digital image.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="device" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>acquisition device (e.g. “flatbed scanner”)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="image-type" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>type and color-depth of the image (e.g. “RGB 24 bit”)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="production-comment" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>additional textual information about the production process</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="texttool" minOccurs="0" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>Full text in a XML format should be specified with a content-type “fulltext”. 
+The relation between the full text and optional images of whole pages or parts of pages must be specified in a texttool container.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="display" minOccurs="0">
+								<xs:simpleType>
+									<xs:restriction base="xs:string">
+										<xs:enumeration value="yes"/>
+										<xs:enumeration value="no"/>
+									</xs:restriction>
+								</xs:simpleType>
+							</xs:element>
+							<xs:element name="text" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>the file name of the full text file (path inside document directory)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="image" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>the directory name of the directory containig the page image files (path inside document directory)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="figures" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>the directory name of the directory containig the in-page figure image files (path inside document directory)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="text-url-path" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>a characteristic part of the URL with which the full text can be retrieved (the form and content of this element is dependent on the specific text retrieval mechanism)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="xslt" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>the file name of an additional XSL transformation file</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="pagebreak" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>the name of the element that indicates page breaks (default “pb”) </xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="presentation" type="xs:string" minOccurs="0"/>
+							<xs:element name="toptemplate" type="xs:string" minOccurs="0"/>
+							<xs:element name="digiliburlprefix" type="xs:string" minOccurs="0"/>
+							<xs:element name="thumbtemplate" type="xs:string" minOccurs="0"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="access-conditions" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>If the access to a resource is bound to conditions for technical or legal reasons then the conditions can be put in a access-conditions container. Other usage conditions like copyright can also be documented in this container. 
+The attribution, copyright, and access tags can be repeated with different resource attributes if different conditions apply to different parts of the whole resource.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="attribution">
+								<xs:annotation>
+									<xs:documentation>The name or institution this resource should be attributed
+to when it’s publicly presented.
+The kind of resource this condition applies to can be specified with a resource attribute with the values “original” (the physical object that was scanned), "digital-image" (the scanned images), "text" (the textual transcript).</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="name" minOccurs="0" maxOccurs="unbounded">
+											<xs:complexType>
+												<xs:simpleContent>
+												<xs:extension base="xs:string"/>
+												</xs:simpleContent>
+											</xs:complexType>
+										</xs:element>
+										<xs:element ref="url" minOccurs="0" maxOccurs="unbounded"/>
+										<xs:element ref="description" minOccurs="0"
+											maxOccurs="unbounded"/>
+									</xs:sequence>
+									<xs:attribute name="resource" use="optional">
+										<xs:simpleType>
+											<xs:restriction base="xs:string">
+												<xs:enumeration value="text"/>
+												<xs:enumeration value="digital-image"/>
+												<xs:enumeration value="original"/>
+											</xs:restriction>
+										</xs:simpleType>
+									</xs:attribute>
+								</xs:complexType>
+							</xs:element>
+							<xs:element name="copyright">
+								<xs:annotation>
+									<xs:documentation>the copyright holder and the copyright conditions. 
+The kind of resource this condition applies to can be specified with a resource attribute with the values “original” (the physical object that was scanned), “digital-image” (the scanned images), “text” (the textual transcript).</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="owner" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>the name of the copyright holder</xs:documentation>
+											</xs:annotation>
+											<xs:complexType>
+												<xs:sequence>
+												<xs:element name="name" type="xs:string">
+												<xs:annotation>
+												<xs:documentation>a name (free text)</xs:documentation>
+												</xs:annotation>
+												</xs:element>
+												<xs:element ref="url"/>
+												</xs:sequence>
+											</xs:complexType>
+										</xs:element>
+										<xs:element ref="date"/>
+										<xs:element name="duration" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>the duration of the copyright term (if known)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="description" minOccurs="0"/>
+										<xs:element name="license" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>the type of license if its a standardised license e.g. Creative Commons </xs:documentation>
+											</xs:annotation>
+											<xs:complexType>
+												<xs:sequence>
+												<xs:annotation>
+												<xs:documentation>a URL representing the license e.g. http://creativecommons.org/licenses/by/3.0/ </xs:documentation>
+												</xs:annotation>
+												<xs:element ref="url"/>
+												</xs:sequence>
+											</xs:complexType>
+										</xs:element>
+									</xs:sequence>
+									<xs:attribute name="resource" use="optional">
+										<xs:simpleType>
+											<xs:restriction base="xs:string">
+												<xs:enumeration value="text"/>
+												<xs:enumeration value="digital-image"/>
+												<xs:enumeration value="original"/>
+											</xs:restriction>
+										</xs:simpleType>
+									</xs:attribute>
+								</xs:complexType>
+							</xs:element>
+							<xs:element name="access">
+								<xs:annotation>
+									<xs:documentation>access restricted to the members of this named group. The method to identify a user belonging to a named group is not 
+specified in this document.</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:annotation>
+											<xs:documentation>conditions of access to this resource. Different access types are specified by a type attribute. The kind of resource this condition applies to can be specified with a resource attribute with the values “digital-image” (the scanned images), or “text” (the textual transcript).</xs:documentation>
+										</xs:annotation>
+										<xs:element name="name" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>name of the group.</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="range" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>subnet range defined in truncated-quad (e.g. “141.14”), network-netmask (e.g. “141.14.0.0/255.255.0.0”), or network-range (e.g. “141.14.0.0/16”) notation.</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="only-before"/>
+										<xs:element ref="only-after"/>
+										<xs:element ref="description"/>
+									</xs:sequence>
+									<xs:attribute name="resource" use="optional">
+										<xs:simpleType>
+											<xs:restriction base="xs:string">
+												<xs:enumeration value="text"/>
+												<xs:enumeration value="original"/>
+												<xs:enumeration value="digital-image"/>
+											</xs:restriction>
+										</xs:simpleType>
+									</xs:attribute>
+									<xs:attribute name="type" use="optional">
+										<xs:simpleType>
+											<xs:restriction base="xs:string">
+												<xs:enumeration value="group"/>
+												<xs:enumeration value="institution"/>
+												<xs:enumeration value="subnet"/>
+												<xs:enumeration value="scientific"/>
+												<xs:enumeration value="free"/>
+												<xs:enumeration value="special"/>
+											</xs:restriction>
+										</xs:simpleType>
+									</xs:attribute>
+								</xs:complexType>
+							</xs:element>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="acquisition" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>the acquisition source of this resource</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="provider">
+								<xs:annotation>
+									<xs:documentation>where this resource came from</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="name" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>free-text name of the provider (institution or individual)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="address" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>address of the provider</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="contact" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>contact person at the provider (i.e. name and email)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="url" minOccurs="0"/>
+										<xs:element name="provider-id" type="xs:string"
+											minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>id of the provider (internally used) - deduced</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+									</xs:sequence>
+								</xs:complexType>
+							</xs:element>
+							<xs:element ref="date"/>
+							<xs:element ref="description"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="film-acquisition" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>Documentary films can be described using a film-acquisition container.
+(More information about the digitization step could be added in a digitization tag similar to the recording tag.)</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="recording">
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element ref="author"/>
+										<xs:element ref="date"/>
+										<xs:element name="location" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>the place where the film was recorded</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="device">
+											<xs:annotation>
+												<xs:documentation>recording device used (e.g. “Sony CP-DV8 Camcorder”)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="format">
+											<xs:annotation>
+												<xs:documentation>format of the recorded film (e.g. “DV 720x524 
+25fps interlaced”)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+									</xs:sequence>
+								</xs:complexType>
+							</xs:element>
+							<xs:element ref="description"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+			</xs:sequence>
+			<xs:attribute name="workflow-state"/>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="keywords" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Keywords related to the object/manuscript etc.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="chapter">
+		<xs:annotation>
+			<xs:documentation>describes a section or chapter of the text. chapter elements can be nested.</xs:documentation>
+		</xs:annotation>
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element name="name">
+					<xs:annotation>
+						<xs:documentation>the title of the chapter or section.</xs:documentation>
+					</xs:annotation>
+				</xs:element>
+				<xs:element name="start">
+					<xs:annotation>
+						<xs:documentation>the beginning of a page range (usually the first page of the chapter). The start element has an optional increment attribute to indicate the number of logical pages on a scan image. (This information is only needed by additional tools that try to generate lists of all page and image numbers.)</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="name" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>the “name” of the first page</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="index" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>the index of the first page</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element ref="url">
+								<xs:annotation>
+									<xs:documentation>the URL of the first page </xs:documentation>
+								</xs:annotation>
+							</xs:element>
+						</xs:sequence>
+						<xs:attribute name="increment" type="xs:string" use="optional"/>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="end">
+					<xs:annotation>
+						<xs:documentation>the end of a page range (usually the last page of the chapter).</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="name" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>the “name” of the last page</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="index" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>the index of the last page</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element ref="url">
+								<xs:annotation>
+									<xs:documentation>the URL of the last page </xs:documentation>
+								</xs:annotation>
+							</xs:element>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="page" type="xs:string" minOccurs="0">
+					<xs:annotation>
+						<xs:documentation>alternative (and additional) to start/end page ranges single page elements can be used inside chapter. </xs:documentation>
+					</xs:annotation>
+				</xs:element>
+				<xs:element ref="chapter" minOccurs="0"/>
+			</xs:sequence>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="author" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>The author of the book/article/thesis etc.
+The author/sender of a letter.
+The person(s) doing the recording.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="title" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Title of the book/article/thesis etc.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="year" type="xs:gYear">
+		<xs:annotation>
+			<xs:documentation>The year of publication.
+- approximate year or century.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="series-title" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Title of the serie, if the book appears in a series.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="series-volume" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Volume number, if the book appears in a series.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="number-of-pages" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Number of pages of the entire book/volume.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="city" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>City where the book/journal/thesis etc. was published.
+City of the newspaper.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="publisher" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Name of the publishing company.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="edition" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Edition of the book/journal (e.g. third edition)</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="translator" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Name of the translator</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="isbn-issn" type="xs:string"/>
+	<xs:element name="call-number" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Call number in holding library</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="holding-library" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Holding library</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="series-editor" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Name of the series editor, if the book appears in a series.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="number-of-volumes" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Number of volumes, if the book is published in multiple volumes.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="editor" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Name of the book’s editor.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="pages" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Number of pages of the article</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="book-title" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Title of the book if bib type=inbook</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="volume" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Volume number</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="date">
+		<xs:annotation>
+			<xs:documentation>The date of publication with attribute which calendar used. If no attribute used, CE is the default. Can also be descriptive. 
+- normalised date of the letter
+- Date of the collation of the codex.
+- Date of the conference the proceedings are related to
+- Date when the article appeared.
+- Date when the copyright was issued.
+- Date of acquisition
+- Date or time span when the film was recorded</xs:documentation>
+		</xs:annotation>
+		<xs:complexType>
+			<xs:simpleContent>
+				<xs:extension base="xs:string">
+					<xs:attribute name="calendar" type="xs:string" use="optional"/>
+				</xs:extension>
+			</xs:simpleContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="issue" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Number of the issue the article is part of.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="signature" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Signature(s) of the manuscript under which a manuscript is known.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="editorial-remarks" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Remarks related to the online publication of the manuscript. 
+This could be notes about annotations etc.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="location" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Name of the library/place/city/country where the manuscript is currently located.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="foliation" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Text giving list or range of folios.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="number-of-folios" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Number of folios/pages of the manuscript.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="contents" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Formal description of the text structure (e.g. table of contents).</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="binding" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Description of binding.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="notes-on-ownership" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Notes on ownership of the manuscript.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="notes" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Additional notes</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="incipit" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Incipit (beginning of text).
+The opening phrase of the letter</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="explicit" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Explicit (end of text).
+The closing phrase of the letter</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="description" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>This could be any kind of description.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="type">
+		<xs:annotation>
+			<xs:documentation>Type of the report. The type of correspondence, e.g. “letter”, “postcard”, “telegram”, 
+“letter draft”</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="abstract" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Interpretative abstract of the text's content.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="url">
+		<xs:annotation>
+			<xs:documentation>URL to present to the client
+- alternatively to the digilib index number the full URL of the scan image of the page can be used. </xs:documentation>
+		</xs:annotation>
+		<xs:complexType>
+			<xs:simpleContent>
+				<xs:extension base="xs:anyURI">
+					<xs:attribute name="label" type="xs:string" use="optional"/>
+				</xs:extension>
+			</xs:simpleContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="only-before" type="xs:date">
+		<xs:annotation>
+			<xs:documentation>the access condition is only valid before the given date (format: “YYYY/MM/DD”).</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="only-after" type="xs:date">
+		<xs:annotation>
+			<xs:documentation>the access condition is only valid after the given date (format: “YYYY/MM/DD”). </xs:documentation>
+		</xs:annotation>
+	</xs:element>
+</xs:schema>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/de/mpiwg/itgroup/metadataManager/validation/data/index_meta.xsd	Sun Oct 23 21:29:45 2011 +0200
@@ -0,0 +1,1534 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Turhan Gezer (MPI Wissenschaftsgeschichte) -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
+	<xs:element name="index_meta">
+		<xs:annotation>
+			<xs:documentation>Comment describing your root element</xs:documentation>
+		</xs:annotation>
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element name="resource">
+					<xs:annotation>
+						<xs:documentation>In this description elements marked “optional” need not be supplied by the provider of the resource and may be absent in all versions of the metadata file. Elements marked “required” must be supplied by the provider of the resource. Elements marked “deduced” can be supplied by the provider of the resource but can also be provided by automatic scripts later in the process, these elements must be present in the final file. File and directory paths in the metadata file use the conventional Unix file separator slash “/”. The outer container element is resource.
+type is sub-type of resource (e.g. “ECHO”, “MPIWG”)
+version is version number of metadata format (currently 1.2)</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="description" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>An informal textual description of the resource (At least one description of the resource’s content is required. The description can be an informal description element or a descriptive element (like bib) in a meta container. )</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="name" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>The filename of the resource (name of the directory this file is contained in)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="creator" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>The name of the pro ject or person that created the resource</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="archive-creation-date" type="xs:date">
+								<xs:annotation>
+									<xs:documentation>The time and date the archive collection was created
+– deduced.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="archive-storage-date" type="xs:date">
+								<xs:annotation>
+									<xs:documentation>The time and date the archive was written to permanent storage – deduced (must not be set by the user).</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="archive-path" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>The full path to the resource directory inside the whole archive collection, including the resource directory – deduced.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="archive-id" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>The ID for this document in the archive</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:choice minOccurs="0">
+								<xs:element name="derived-from">
+									<xs:annotation>
+										<xs:documentation>Container for the description of the original resource if this resource is a modified version of another resource</xs:documentation>
+									</xs:annotation>
+									<xs:complexType>
+										<xs:sequence>
+											<xs:choice>
+												<xs:element name="archive-id" type="xs:string">
+													<xs:annotation>
+														<xs:documentation>The ID of the original resource</xs:documentation>
+													</xs:annotation>
+												</xs:element>
+												<xs:element name="archive-path" type="xs:string">
+													<xs:annotation>
+														<xs:documentation>The full path to the original resource</xs:documentation>
+													</xs:annotation>
+												</xs:element>
+											</xs:choice>
+											<xs:element name="description" type="xs:string" minOccurs="0">
+												<xs:annotation>
+													<xs:documentation>An informal textual description of the relation of this resource to the original resource</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+										</xs:sequence>
+									</xs:complexType>
+								</xs:element>
+								<xs:element name="used-by">
+									<xs:annotation>
+										<xs:documentation>Container for the description of modified resources if this resource is the source of another resource</xs:documentation>
+									</xs:annotation>
+									<xs:complexType>
+										<xs:sequence>
+											<xs:choice>
+												<xs:element name="archive-id" type="xs:string">
+													<xs:annotation>
+														<xs:documentation>The ID of the derived resource</xs:documentation>
+													</xs:annotation>
+												</xs:element>
+												<xs:element name="archive-path" type="xs:string">
+													<xs:annotation>
+														<xs:documentation>The full path to the derived resource</xs:documentation>
+													</xs:annotation>
+												</xs:element>
+											</xs:choice>
+											<xs:element name="description" type="xs:string" minOccurs="0">
+												<xs:annotation>
+													<xs:documentation>An informal textual description of the relation of this resource to the original resource</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+										</xs:sequence>
+									</xs:complexType>
+								</xs:element>
+								<xs:element name="linked-with">
+									<xs:annotation>
+										<xs:documentation>Container for the description of another resource when this resource is a linked copy of another resource</xs:documentation>
+									</xs:annotation>
+									<xs:complexType>
+										<xs:sequence>
+											<xs:choice>
+												<xs:element name="archive-id" type="xs:string">
+													<xs:annotation>
+														<xs:documentation>The ID of the linked resource</xs:documentation>
+													</xs:annotation>
+												</xs:element>
+												<xs:element name="archive-path" type="xs:string">
+													<xs:annotation>
+														<xs:documentation>The full path to the linked resource</xs:documentation>
+													</xs:annotation>
+												</xs:element>
+											</xs:choice>
+											<xs:element name="description" type="xs:string" minOccurs="0">
+												<xs:annotation>
+													<xs:documentation>An informal textual description of the relation of this resource to the linked resource</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+										</xs:sequence>
+									</xs:complexType>
+								</xs:element>
+								<xs:element name="is-part-of">
+									<xs:annotation>
+										<xs:documentation>Container for the description of another resource if this resource is a part of the other resource. It can have a type attribute describing the type of relation. e.g. "manuscript-codex".</xs:documentation>
+									</xs:annotation>
+									<xs:complexType>
+										<xs:sequence>
+											<xs:choice>
+												<xs:element name="archive-id" type="xs:string">
+													<xs:annotation>
+														<xs:documentation>The ID of the original resource</xs:documentation>
+													</xs:annotation>
+												</xs:element>
+												<xs:element name="archive-path" type="xs:string">
+													<xs:annotation>
+														<xs:documentation>The full path to the original resource</xs:documentation>
+													</xs:annotation>
+												</xs:element>
+											</xs:choice>
+											<xs:element name="description" type="xs:string" minOccurs="0">
+												<xs:annotation>
+													<xs:documentation>An informal textual description of the relation of this resource to the original resource</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+										</xs:sequence>
+										<xs:attribute name="type" type="xs:string" use="optional"/>
+									</xs:complexType>
+								</xs:element>
+							</xs:choice>
+							<xs:element name="media-type">
+								<xs:annotation>
+									<xs:documentation>The main media type of this resource.
+The main media type can be overridden by media-types in subdirectories. 
+Possible types are: image, text, audio, video and data for other type of data </xs:documentation>
+								</xs:annotation>
+								<xs:simpleType>
+									<xs:restriction base="xs:string">
+										<xs:enumeration value="image"/>
+										<xs:enumeration value="text"/>
+										<xs:enumeration value="audio"/>
+										<xs:enumeration value="video"/>
+										<xs:enumeration value="data"/>
+									</xs:restriction>
+								</xs:simpleType>
+							</xs:element>
+							<xs:element ref="meta" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>Additional metadata information about the resource</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="dir">
+								<xs:annotation>
+									<xs:documentation>Container for the description of a subdirectory (when there are subdirectories). dir tags should not be nested. Directories at lower levels are identified by their path.</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="name" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>The name of the subdirectory</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="description" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>An informal textual description of the subdirectory</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="original-name" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>A text string associated with the directory as original name. (E.g. if the data in this directory came from an external source and had a name that had to be changed according to section 1 but it should be possible to reference the original name.)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="path" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>The directory path of this subdirectory relative to the resource’s root directory (excluding the directory itself ). (may be 
+empty or omitted if the directory is a direct child of the resource’s 
+root directory). </xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="meta" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>Additional metadata information about the directory</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+									</xs:sequence>
+								</xs:complexType>
+							</xs:element>
+							<xs:element name="file">
+								<xs:annotation>
+									<xs:documentation>Container for the description of a file – deduced. 
+file tags should not be nested in dir tags. Files at lower directory levels are identified by their path.</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="name" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>The name of the file</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="description" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>An informal textual description of the file</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="original-name" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>A text string associated with the file as original name. (e.g. if this file came from an external source and had a name that had to be changed according to section 1 it is possible to preserve the original name.)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="path" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>The directory path of this file relative to the resource's root directory (excluding the file itself). (may be empty or omitted if the file is in the resource’s root directory).</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="date" type="xs:date" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>The file’s modification or creation date, whichever is more recent</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="modification-date" type="xs:date" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>The file’s modification date</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="creation-date" type="xs:date" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>The file’s creation date</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="size" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>The file size – deduced.</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="mime-type" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>The file’s mime-type</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="md5cs" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>MD5 checksum of the file content</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="meta" minOccurs="0"/>
+									</xs:sequence>
+								</xs:complexType>
+							</xs:element>
+						</xs:sequence>
+						<xs:attribute name="type" use="optional">
+							<xs:simpleType>
+								<xs:restriction base="xs:string"/>
+							</xs:simpleType>
+						</xs:attribute>
+						<xs:attribute name="version" type="xs:string" use="required"/>
+					</xs:complexType>
+				</xs:element>
+			</xs:sequence>
+		</xs:complexType>
+	</xs:element>
+	<xs:attribute name="workflow-state">
+		<xs:simpleType>
+			<xs:restriction base="xs:string">
+				<xs:enumeration value="preliminary"/>
+				<xs:enumeration value="inwork"/>
+				<xs:enumeration value="final"/>
+			</xs:restriction>
+		</xs:simpleType>
+	</xs:attribute>
+	<xs:element name="meta">
+		<xs:annotation>
+			<xs:documentation>All additional metadata elements can have a workflow-state attribute. This attribute reflects the state of the corresponding metadata element. The possible values for the workflow-state attribute are
+• preliminary this information is preliminary. It must be checked in further workflow steps.
+• inwork
+• final
+workflow states other than preliminary are part of the workflow handling of the respective projects.
+Metadata elements can appear multiple times with different workflow-state-attributes. This enables metadata versioning.</xs:documentation>
+		</xs:annotation>
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element name="content-type" type="xs:string" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>The content type of this resource. The content type enables the choice of tools to manipulate and display the resource. There should be a common list of content types. For digital documents (books, manuscripts) this would be “scanned document”, for other image data “scanned images”. The criterion for documents is an ordered succession of image files (pages) and equal image size and resolution throughout the images of a resource.</xs:documentation>
+					</xs:annotation>
+				</xs:element>
+				<xs:element name="lang" type="xs:language" minOccurs="0" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>The language of a resource (e.g. a text) can be specified with a lang tag. Languages have to be described using the international codes for the representation of names of languages either in two-letter form (ISO 639-1) or in three-letter form (ISO 639-2). The entire catalogue of languages is documented on the page http://www.loc.gov/standards/iso639- 2/englangn.html</xs:documentation>
+					</xs:annotation>
+				</xs:element>
+				<xs:element name="dri" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>The digital resource identifier for the resource is specified in a dri element. Digital resource identifiers are documented on the page http://pythia.mpiwg-berlin.mpg.de/projects/standards/dri. </xs:documentation>
+					</xs:annotation>
+				</xs:element>
+				<xs:element name="context" minOccurs="0" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>The context of a resource as part of a collection or part of a pro ject can be specified in the context element. The context element can appear multiple times if the resource is part of multiple collections or pro jects.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="link" type="xs:anyURI" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>URL to additional context information</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="name" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>Textual description of pro ject or collection</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="meta-datalink" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>description of external sources of canonical meta information
+- db attribute to identify different sets of meta data links to the same resource
+- object attribute to identify different objects or parts of the same resource</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="label" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>textual label for the link</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="url" minOccurs="0"/>
+										<xs:element name="metadata-url" type="xs:anyURI" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>URL to an external server to be queried</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+									</xs:sequence>
+									<xs:attribute name="db" type="xs:string" use="optional"/>
+									<xs:attribute name="object" type="xs:string" use="optional"/>
+								</xs:complexType>
+							</xs:element>
+							<xs:element name="meta-baselink" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>description of external server for canonical meta information. 
+- db attribute to identify different sets of meta data links to the same resource</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="label" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>textual label for the link</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="url" minOccurs="0"/>
+										<xs:element name="metadata-url">
+											<xs:annotation>
+												<xs:documentation>URL to an external server to be queried
+(the parameter object= with an object id has to be appended to this URL) </xs:documentation>
+											</xs:annotation>
+											<xs:complexType>
+												<xs:simpleContent>
+													<xs:extension base="xs:anyURI">
+														<xs:attribute name="object" type="xs:string" use="required"/>
+													</xs:extension>
+												</xs:simpleContent>
+											</xs:complexType>
+										</xs:element>
+									</xs:sequence>
+									<xs:attribute name="db" type="xs:string" use="optional"/>
+								</xs:complexType>
+							</xs:element>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="bib">
+					<xs:annotation>
+						<xs:documentation>a published book.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:choice>
+							<xs:annotation>
+								<xs:documentation>Bibliographic information is presented in a bib container with a type parameter, giving the type of bibliographic resource. The type field can be repeated as a tag in the container.
+The format is based on the ECHO scheme for bibliographic data (cf. content workflow), the MPIWG “Projektbibliografie” and the format of the commonly used program “EndNote”. </xs:documentation>
+							</xs:annotation>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element ref="series-editor" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="series-title" minOccurs="0"/>
+								<xs:element ref="series-volume" minOccurs="0"/>
+								<xs:element ref="number-of-pages" minOccurs="0"/>
+								<xs:element ref="city" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="publisher" minOccurs="0"/>
+								<xs:element ref="edition" minOccurs="0"/>
+								<xs:element ref="number-of-volumes" minOccurs="0"/>
+								<xs:element ref="translator" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="isbn-issn" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element ref="editor" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="book-title" minOccurs="0"/>
+								<xs:element ref="series-volume" minOccurs="0"/>
+								<xs:element ref="pages" minOccurs="0"/>
+								<xs:element ref="city" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="publisher" minOccurs="0"/>
+								<xs:element ref="edition" minOccurs="0"/>
+								<xs:element ref="series-editor" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="series-title" minOccurs="0"/>
+								<xs:element ref="number-of-volumes" minOccurs="0"/>
+								<xs:element ref="translator" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="isbn-issn" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element ref="editor" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element name="conference-name" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Name of the conference the proceedings are related to.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="volume" minOccurs="0"/>
+								<xs:element ref="pages" minOccurs="0"/>
+								<xs:element ref="date" minOccurs="0"/>
+								<xs:element name="conference-location" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>City where the conference was held.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="publisher" minOccurs="0"/>
+								<xs:element ref="edition" minOccurs="0"/>
+								<xs:element ref="series-editor" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="series-title" minOccurs="0"/>
+								<xs:element ref="number-of-volumes" minOccurs="0"/>
+								<xs:element ref="isbn-issn" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="editor" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element ref="series-editor" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="series-title" minOccurs="0"/>
+								<xs:element ref="series-volume" minOccurs="0"/>
+								<xs:element ref="number-of-pages" minOccurs="0"/>
+								<xs:element ref="city" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="publisher" minOccurs="0"/>
+								<xs:element ref="edition" minOccurs="0"/>
+								<xs:element ref="number-of-volumes" minOccurs="0"/>
+								<xs:element ref="isbn-issn" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="editor" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="publisher" minOccurs="0"/>
+								<xs:element ref="city" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element ref="volume" minOccurs="0"/>
+								<xs:element ref="number-of-pages" minOccurs="0"/>
+								<xs:element ref="isbn-issn" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element name="journal" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Name of the journal</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="alternate-journal" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Alternate journal</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="volume" minOccurs="0"/>
+								<xs:element ref="issue" minOccurs="0"/>
+								<xs:element ref="pages" minOccurs="0"/>
+								<xs:element ref="isbn-issn" minOccurs="0"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element name="magazine" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Name of the magazine.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="volume" minOccurs="0"/>
+								<xs:element ref="issue" minOccurs="0"/>
+								<xs:element ref="pages" minOccurs="0"/>
+								<xs:element ref="date" minOccurs="0"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element name="newspaper" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Name of the newspaper the article appeared in.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="pages" minOccurs="0"/>
+								<xs:element name="issue-date" type="xs:date" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Date of the issue the article is part of. Only in bib type="newspaper-article"</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="city" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element name="academic-department" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Name of the academic department where the thesis was handed in.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="university" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Name of the university where the thesis was handed in.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="city" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="number-of-pages" minOccurs="0"/>
+								<xs:element ref="isbn-issn" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element ref="pages" minOccurs="0"/>
+								<xs:element ref="date" minOccurs="0"/>
+								<xs:element ref="city" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element name="institution" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Institution where the report was produced.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="type" minOccurs="0"/>
+								<xs:element name="report-number" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Report number</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element ref="location" minOccurs="0"/>
+								<xs:element ref="pages" minOccurs="0"/>
+								<xs:element ref="editorial-remarks" minOccurs="0"/>
+								<xs:element ref="description" minOccurs="0"/>
+								<xs:element ref="keywords" minOccurs="0"/>
+								<xs:element ref="signature" minOccurs="0"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element ref="date" minOccurs="0"/>
+								<xs:element ref="location" minOccurs="0"/>
+								<xs:element ref="editorial-remarks" minOccurs="0"/>
+								<xs:element ref="keywords" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="number-of-folios" minOccurs="0"/>
+								<xs:element ref="foliation" minOccurs="0"/>
+								<xs:element name="collation-corrections" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Notes on collation and corrections.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="abstract" minOccurs="0"/>
+								<xs:element ref="incipit" minOccurs="0"/>
+								<xs:element ref="explicit" minOccurs="0"/>
+								<xs:element ref="contents" minOccurs="0"/>
+								<xs:element name="writing-surface" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>material of the writing surface (e.g. “non-european paper”, “palm leaf ”,. . . )</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="page-dimensions" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Height and width of page in cm.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="written-area-dimensions" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Height and width of written area in cm.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="lines-per-page" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Number of lines and columns.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="catchwords" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Quire signatures and catchwords</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="scripts" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Description of the script and the ink used.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="copyist" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+									<xs:annotation>
+										<xs:documentation>Copyist</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="binding" minOccurs="0"/>
+								<xs:element ref="notes-on-ownership" minOccurs="0"/>
+								<xs:element ref="notes" minOccurs="0"/>
+								<xs:element name="secondary-literature" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+									<xs:annotation>
+										<xs:documentation>Notes on secondary literature related to the manuscript</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="signature" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element ref="date" minOccurs="0"/>
+								<xs:element ref="location" minOccurs="0"/>
+								<xs:element ref="foliation" minOccurs="0"/>
+								<xs:element name="dimensions" type="xs:string" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>Height and width in cm</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="contents" minOccurs="0"/>
+								<xs:element ref="binding" minOccurs="0"/>
+								<xs:element ref="notes-on-ownership" minOccurs="0"/>
+								<xs:element ref="notes" minOccurs="0"/>
+								<xs:element ref="signature" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="type" minOccurs="0"/>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element name="recipient" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>The recipient of the letter.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="date" minOccurs="0"/>
+								<xs:element name="date-range-end" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>end of range of uncertain dating</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="date-original" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>the date in its original form as noted on the letter</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="place" minOccurs="0">
+									<xs:annotation>
+										<xs:documentation>place where the letter was written/sent.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element ref="pages" minOccurs="0"/>
+								<xs:element ref="incipit" minOccurs="0"/>
+								<xs:element ref="explicit" minOccurs="0"/>
+								<xs:element ref="keywords" minOccurs="0"/>
+								<xs:element ref="description" minOccurs="0"/>
+								<xs:element ref="signature" minOccurs="0"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element ref="holding-library" minOccurs="0"/>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="title" minOccurs="0"/>
+								<xs:element ref="year" minOccurs="0"/>
+								<xs:element name="secondary-author" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element name="secondary-title" type="xs:string" minOccurs="0"/>
+								<xs:element ref="volume" minOccurs="0"/>
+								<xs:element ref="issue" minOccurs="0"/>
+								<xs:element ref="pages" minOccurs="0"/>
+								<xs:element ref="date" minOccurs="0"/>
+								<xs:element name="place-published" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="publisher" minOccurs="0"/>
+								<xs:element ref="edition" minOccurs="0"/>
+								<xs:element name="tertiary-author" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element name="tertiary-title" type="xs:string" minOccurs="0"/>
+								<xs:element ref="number-of-volumes" minOccurs="0"/>
+								<xs:element name="type-of-work" type="xs:string" minOccurs="0"/>
+								<xs:element name="subsidiary-author" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element name="alternate-title" type="xs:string" minOccurs="0"/>
+								<xs:element ref="isbn-issn" minOccurs="0" maxOccurs="unbounded"/>
+								<xs:element ref="call-number" minOccurs="0"/>
+								<xs:element name="label" type="xs:string" minOccurs="0"/>
+								<xs:element ref="keywords" minOccurs="0"/>
+								<xs:element ref="abstract" minOccurs="0"/>
+								<xs:element ref="notes" minOccurs="0"/>
+								<xs:element name="url" type="xs:anyURI" minOccurs="0"/>
+							</xs:sequence>
+						</xs:choice>
+						<xs:attribute name="type" use="optional">
+							<xs:simpleType>
+								<xs:restriction base="xs:string">
+									<xs:enumeration value="book"/>
+									<xs:enumeration value="inbook"/>
+									<xs:enumeration value="proceedings"/>
+									<xs:enumeration value="edited-book"/>
+									<xs:enumeration value="journal-volume"/>
+									<xs:enumeration value="journal-article"/>
+									<xs:enumeration value="magazine-article"/>
+									<xs:enumeration value="newspaper-article"/>
+									<xs:enumeration value="thesis"/>
+									<xs:enumeration value="report"/>
+									<xs:enumeration value="manuscript"/>
+									<xs:enumeration value="manuscript-extended"/>
+									<xs:enumeration value="codex"/>
+									<xs:enumeration value="correspondence"/>
+									<xs:enumeration value="generic"/>
+								</xs:restriction>
+							</xs:simpleType>
+						</xs:attribute>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="doc" minOccurs="0">
+					<xs:annotation>
+						<xs:documentation>Specific information for architectural drawings is presented in a doc container 
+with an additional type attribute giving the type of drawing. All elements inside 
+the container can appear multiple times. </xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="person" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+								<xs:annotation>
+									<xs:documentation>last name and first name of a person, separated by a comma. A further common name for the person can be put infront, separated by a semicolon.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="location" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+								<xs:annotation>
+									<xs:documentation>Name of a place in its common notation. This can be a city or a institution. </xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="date" type="xs:gYear" minOccurs="0" maxOccurs="unbounded">
+								<xs:annotation>
+									<xs:documentation>This can be a year (or several years, separated by commas) or a period (1706-1714). Years are noted with four digits.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="object" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+								<xs:annotation>
+									<xs:documentation>Short description of an object or signatures.</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element ref="keywords" minOccurs="0" maxOccurs="unbounded"/>
+						</xs:sequence>
+						<xs:attribute name="type" use="required" fixed="Architectural Drawing">
+							<xs:simpleType>
+								<xs:restriction base="xs:string"/>
+							</xs:simpleType>
+						</xs:attribute>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="toc" minOccurs="0" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>Information on the structure of a document like the division into parts and chapters in the way of a table of contents is presented in a toc container. 
+The scheme allows multiple logical pages on a single page image as it is often the case with scanned books or manuscripts. The scheme also allows for “loose” numbering schemes with roman, arabic or other page numbers consecutively or mixed and changes in the numbering within the document.
+The flexibility comes from the fact that no additional assumptions about the 
+mapping between logical pages and page images are made in the format. All mapping information is specified by the user. 
+The logical page numbering or naming that can be presented to the user is 
+specified in the name tags while the physical numbering of the page images is specified in the index or url tags.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="page">
+								<xs:annotation>
+									<xs:documentation>describes a single logical page</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="name" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>the “name” of the logical page. This can be any string like a page number (arabic, roman, etc.) or a special designation like “Table 5”. </xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="index" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>the digilib index number of the scan image of the page. (The index number for digilib is the index in the alphabetical order of the scan file names.)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="url">
+											<xs:annotation>
+												<xs:documentation>alternatively to the digilib index number the full URL of the scan image of the page can be used. </xs:documentation>
+											</xs:annotation>
+										</xs:element>
+									</xs:sequence>
+								</xs:complexType>
+							</xs:element>
+							<xs:element ref="chapter"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="img">
+					<xs:complexType>
+						<xs:choice>
+							<xs:annotation>
+								<xs:documentation>Image files representing scanned images can have an img container tag with 
+information about the scan resolution and the size of the original image. This 
+information is used by the digilib image viewing tool. 
+Required is one of three possible sets of tags:</xs:documentation>
+							</xs:annotation>
+							<xs:sequence>
+								<xs:element name="original-size-x" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The width of the original image. 
+The unit of measure can be contained as parameter unit, the default is meter “m”. The width to be considered is the total width of the scanned area.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-size-y" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The height of the original image.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-x" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The width of the hi-res scan in pixels.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-y" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The height of the hi-res scan in pixels</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element name="original-dpi" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The resolution of the hi-res scan in pixels per inch if the 
+resolutions in width and height are the same</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-x" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The width of the hi-res scan in pixels - deduced.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-y" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The height of the hi-res scan in pixels – deduced.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+							</xs:sequence>
+							<xs:sequence>
+								<xs:element name="original-dpi-x" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The resolution of the hi-res scan in its width in pixels per 
+inch</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-dpi-y" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The resolution of the hi-res scan in its height in pixels per 
+inch</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-x" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The width of the hi-res scan in pixels - deduced.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+								<xs:element name="original-pixel-y" type="xs:string">
+									<xs:annotation>
+										<xs:documentation>The height of the hi-res scan in pixels – deduced.</xs:documentation>
+									</xs:annotation>
+								</xs:element>
+							</xs:sequence>
+						</xs:choice>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="image-acquisition" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>A description of the technology used in the process of producing a digital image.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="device" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>acquisition device (e.g. “flatbed scanner”)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="image-type" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>type and color-depth of the image (e.g. “RGB 24 bit”)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="production-comment" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>additional textual information about the production process</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="texttool" minOccurs="0" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>Full text in a XML format should be specified with a content-type “fulltext”. 
+The relation between the full text and optional images of whole pages or parts of pages must be specified in a texttool container.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="display" minOccurs="0">
+								<xs:simpleType>
+									<xs:restriction base="xs:string">
+										<xs:enumeration value="yes"/>
+										<xs:enumeration value="no"/>
+									</xs:restriction>
+								</xs:simpleType>
+							</xs:element>
+							<xs:element name="text" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>the file name of the full text file (path inside document directory)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="image" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>the directory name of the directory containig the page image files (path inside document directory)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="figures" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>the directory name of the directory containig the in-page figure image files (path inside document directory)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="text-url-path" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>a characteristic part of the URL with which the full text can be retrieved (the form and content of this element is dependent on the specific text retrieval mechanism)</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="xslt" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>the file name of an additional XSL transformation file</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="pagebreak" type="xs:string" minOccurs="0">
+								<xs:annotation>
+									<xs:documentation>the name of the element that indicates page breaks (default “pb”) </xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="presentation" type="xs:string" minOccurs="0"/>
+							<xs:element name="toptemplate" type="xs:string" minOccurs="0"/>
+							<xs:element name="digiliburlprefix" type="xs:string" minOccurs="0"/>
+							<xs:element name="thumbtemplate" type="xs:string" minOccurs="0"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="access-conditions" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>If the access to a resource is bound to conditions for technical or legal reasons then the conditions can be put in a access-conditions container. Other usage conditions like copyright can also be documented in this container. 
+The attribution, copyright, and access tags can be repeated with different resource attributes if different conditions apply to different parts of the whole resource.</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="attribution">
+								<xs:annotation>
+									<xs:documentation>The name or institution this resource should be attributed
+to when it’s publicly presented.
+The kind of resource this condition applies to can be specified with a resource attribute with the values “original” (the physical object that was scanned), "digital-image" (the scanned images), "text" (the textual transcript).</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="name" minOccurs="0" maxOccurs="unbounded">
+											<xs:complexType>
+												<xs:simpleContent>
+													<xs:extension base="xs:string"/>
+												</xs:simpleContent>
+											</xs:complexType>
+										</xs:element>
+										<xs:element ref="url" minOccurs="0" maxOccurs="unbounded"/>
+										<xs:element ref="description" minOccurs="0" maxOccurs="unbounded"/>
+									</xs:sequence>
+									<xs:attribute name="resource" use="optional">
+										<xs:simpleType>
+											<xs:restriction base="xs:string">
+												<xs:enumeration value="text"/>
+												<xs:enumeration value="digital-image"/>
+												<xs:enumeration value="original"/>
+											</xs:restriction>
+										</xs:simpleType>
+									</xs:attribute>
+								</xs:complexType>
+							</xs:element>
+							<xs:element name="copyright">
+								<xs:annotation>
+									<xs:documentation>the copyright holder and the copyright conditions. 
+The kind of resource this condition applies to can be specified with a resource attribute with the values “original” (the physical object that was scanned), “digital-image” (the scanned images), “text” (the textual transcript).</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="owner" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>the name of the copyright holder</xs:documentation>
+											</xs:annotation>
+											<xs:complexType>
+												<xs:sequence>
+													<xs:element name="name" type="xs:string">
+														<xs:annotation>
+															<xs:documentation>a name (free text)</xs:documentation>
+														</xs:annotation>
+													</xs:element>
+													<xs:element ref="url"/>
+												</xs:sequence>
+											</xs:complexType>
+										</xs:element>
+										<xs:element ref="date"/>
+										<xs:element name="duration" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>the duration of the copyright term (if known)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="description" minOccurs="0"/>
+										<xs:element name="license" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>the type of license if its a standardised license e.g. Creative Commons </xs:documentation>
+											</xs:annotation>
+											<xs:complexType>
+												<xs:sequence>
+													<xs:annotation>
+														<xs:documentation>a URL representing the license e.g. http://creativecommons.org/licenses/by/3.0/ </xs:documentation>
+													</xs:annotation>
+													<xs:element ref="url"/>
+												</xs:sequence>
+											</xs:complexType>
+										</xs:element>
+									</xs:sequence>
+									<xs:attribute name="resource" use="optional">
+										<xs:simpleType>
+											<xs:restriction base="xs:string">
+												<xs:enumeration value="text"/>
+												<xs:enumeration value="digital-image"/>
+												<xs:enumeration value="original"/>
+											</xs:restriction>
+										</xs:simpleType>
+									</xs:attribute>
+								</xs:complexType>
+							</xs:element>
+							<xs:element name="access">
+								<xs:annotation>
+									<xs:documentation>access restricted to the members of this named group. The method to identify a user belonging to a named group is not 
+specified in this document.</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:choice>
+										<xs:annotation>
+											<xs:documentation>conditions of access to this resource. Different access types are specified by a type attribute. The kind of resource this condition applies to can be specified with a resource attribute with the values “digital-image” (the scanned images), or “text” (the textual transcript).</xs:documentation>
+										</xs:annotation>
+										<xs:sequence>
+											<xs:element name="name" type="xs:string">
+												<xs:annotation>
+													<xs:documentation>name of the group.</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+											<xs:element ref="only-before"/>
+											<xs:element ref="only-after"/>
+										</xs:sequence>
+										<xs:sequence>
+											<xs:element name="name" type="xs:string">
+												<xs:annotation>
+													<xs:documentation>name of the group.</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+											<xs:element ref="only-before"/>
+											<xs:element ref="only-after"/>
+										</xs:sequence>
+										<xs:sequence>
+											<xs:element name="range" type="xs:string">
+												<xs:annotation>
+													<xs:documentation>subnet range defined in truncated-quad (e.g. “141.14”), network-netmask (e.g. “141.14.0.0/255.255.0.0”), or network-range (e.g. “141.14.0.0/16”) notation.</xs:documentation>
+												</xs:annotation>
+											</xs:element>
+											<xs:element ref="only-before"/>
+											<xs:element ref="only-after"/>
+										</xs:sequence>
+										<xs:sequence>
+											<xs:element ref="description"/>
+											<xs:element ref="only-before"/>
+											<xs:element ref="only-after"/>
+										</xs:sequence>
+										<xs:sequence>
+											<xs:element ref="only-before"/>
+											<xs:element ref="only-after"/>
+										</xs:sequence>
+										<xs:sequence>
+											<xs:element ref="only-before"/>
+											<xs:element ref="only-after"/>
+										</xs:sequence>
+									</xs:choice>
+									<xs:attribute name="resource" use="optional">
+										<xs:simpleType>
+											<xs:restriction base="xs:string">
+												<xs:enumeration value="text"/>
+												<xs:enumeration value="original"/>
+												<xs:enumeration value="digital-image"/>
+											</xs:restriction>
+										</xs:simpleType>
+									</xs:attribute>
+									<xs:attribute name="type" type="xs:string" use="optional" fixed="group"/>
+								</xs:complexType>
+							</xs:element>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="acquisition" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>the acquisition source of this resource</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="provider">
+								<xs:annotation>
+									<xs:documentation>where this resource came from</xs:documentation>
+								</xs:annotation>
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element name="name" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>free-text name of the provider (institution or individual)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="address" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>address of the provider</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="contact" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>contact person at the provider (i.e. name and email)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element ref="url" minOccurs="0"/>
+										<xs:element name="provider-id" type="xs:string" minOccurs="0">
+											<xs:annotation>
+												<xs:documentation>id of the provider (internally used) - deduced</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+									</xs:sequence>
+								</xs:complexType>
+							</xs:element>
+							<xs:element ref="date"/>
+							<xs:element ref="description"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="film-acquisition" maxOccurs="unbounded">
+					<xs:annotation>
+						<xs:documentation>Documentary films can be described using a film-acquisition container.
+(More information about the digitization step could be added in a digitization tag similar to the recording tag.)</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="recording">
+								<xs:complexType>
+									<xs:sequence>
+										<xs:element ref="author"/>
+										<xs:element ref="date"/>
+										<xs:element name="location" type="xs:string">
+											<xs:annotation>
+												<xs:documentation>the place where the film was recorded</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="device">
+											<xs:annotation>
+												<xs:documentation>recording device used (e.g. “Sony CP-DV8 Camcorder”)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+										<xs:element name="format">
+											<xs:annotation>
+												<xs:documentation>format of the recorded film (e.g. “DV 720x524 
+25fps interlaced”)</xs:documentation>
+											</xs:annotation>
+										</xs:element>
+									</xs:sequence>
+								</xs:complexType>
+							</xs:element>
+							<xs:element ref="description"/>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+			</xs:sequence>
+			<xs:attribute name="workflow-state"/>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="keywords" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Keywords related to the object/manuscript etc.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="chapter">
+		<xs:annotation>
+			<xs:documentation>describes a section or chapter of the text. chapter elements can be nested.</xs:documentation>
+		</xs:annotation>
+		<xs:complexType>
+			<xs:sequence>
+				<xs:element name="name">
+					<xs:annotation>
+						<xs:documentation>the title of the chapter or section.</xs:documentation>
+					</xs:annotation>
+				</xs:element>
+				<xs:element name="start">
+					<xs:annotation>
+						<xs:documentation>the beginning of a page range (usually the first page of the chapter). The start element has an optional increment attribute to indicate the number of logical pages on a scan image. (This information is only needed by additional tools that try to generate lists of all page and image numbers.)</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="name" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>the “name” of the first page</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="index" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>the index of the first page</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element ref="url">
+								<xs:annotation>
+									<xs:documentation>the URL of the first page </xs:documentation>
+								</xs:annotation>
+							</xs:element>
+						</xs:sequence>
+						<xs:attribute name="increment" type="xs:string" use="optional"/>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="end">
+					<xs:annotation>
+						<xs:documentation>the end of a page range (usually the last page of the chapter).</xs:documentation>
+					</xs:annotation>
+					<xs:complexType>
+						<xs:sequence>
+							<xs:element name="name" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>the “name” of the last page</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element name="index" type="xs:string">
+								<xs:annotation>
+									<xs:documentation>the index of the last page</xs:documentation>
+								</xs:annotation>
+							</xs:element>
+							<xs:element ref="url">
+								<xs:annotation>
+									<xs:documentation>the URL of the last page </xs:documentation>
+								</xs:annotation>
+							</xs:element>
+						</xs:sequence>
+					</xs:complexType>
+				</xs:element>
+				<xs:element name="page" type="xs:string" minOccurs="0">
+					<xs:annotation>
+						<xs:documentation>alternative (and additional) to start/end page ranges single page elements can be used inside chapter. </xs:documentation>
+					</xs:annotation>
+				</xs:element>
+				<xs:element ref="chapter" minOccurs="0"/>
+			</xs:sequence>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="author" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>The author of the book/article/thesis etc.
+The author/sender of a letter.
+The person(s) doing the recording.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="title" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Title of the book/article/thesis etc.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="year" type="xs:gYear">
+		<xs:annotation>
+			<xs:documentation>The year of publication.
+- approximate year or century.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="series-title" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Title of the serie, if the book appears in a series.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="series-volume" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Volume number, if the book appears in a series.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="number-of-pages" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Number of pages of the entire book/volume.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="city" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>City where the book/journal/thesis etc. was published.
+City of the newspaper.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="publisher" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Name of the publishing company.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="edition" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Edition of the book/journal (e.g. third edition)</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="translator" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Name of the translator</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="isbn-issn" type="xs:string"/>
+	<xs:element name="call-number" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Call number in holding library</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="holding-library" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Holding library</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="series-editor" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Name of the series editor, if the book appears in a series.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="number-of-volumes" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Number of volumes, if the book is published in multiple volumes.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="editor" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Name of the book’s editor.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="pages" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Number of pages of the article</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="book-title" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Title of the book if bib type=inbook</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="volume" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Volume number</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="date">
+		<xs:annotation>
+			<xs:documentation>The date of publication with attribute which calendar used. If no attribute used, CE is the default. Can also be descriptive. 
+- normalised date of the letter
+- Date of the collation of the codex.
+- Date of the conference the proceedings are related to
+- Date when the article appeared.
+- Date when the copyright was issued.
+- Date of acquisition
+- Date or time span when the film was recorded</xs:documentation>
+		</xs:annotation>
+		<xs:complexType>
+			<xs:simpleContent>
+				<xs:extension base="xs:string">
+					<xs:attribute name="calendar" type="xs:string" use="optional"/>
+				</xs:extension>
+			</xs:simpleContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="issue" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Number of the issue the article is part of.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="signature" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Signature(s) of the manuscript under which a manuscript is known.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="editorial-remarks" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Remarks related to the online publication of the manuscript. 
+This could be notes about annotations etc.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="location" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Name of the library/place/city/country where the manuscript is currently located.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="foliation" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Text giving list or range of folios.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="number-of-folios" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Number of folios/pages of the manuscript.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="contents" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Formal description of the text structure (e.g. table of contents).</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="binding" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Description of binding.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="notes-on-ownership" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Notes on ownership of the manuscript.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="notes" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Additional notes</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="incipit" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Incipit (beginning of text).
+The opening phrase of the letter</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="explicit" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Explicit (end of text).
+The closing phrase of the letter</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="description" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>This could be any kind of description.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="type">
+		<xs:annotation>
+			<xs:documentation>Type of the report. The type of correspondence, e.g. “letter”, “postcard”, “telegram”, 
+“letter draft”</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="abstract" type="xs:string">
+		<xs:annotation>
+			<xs:documentation>Interpretative abstract of the text's content.</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="url">
+		<xs:annotation>
+			<xs:documentation>URL to present to the client
+- alternatively to the digilib index number the full URL of the scan image of the page can be used. </xs:documentation>
+		</xs:annotation>
+		<xs:complexType>
+			<xs:simpleContent>
+				<xs:extension base="xs:anyURI">
+					<xs:attribute name="label" type="xs:string" use="optional"/>
+				</xs:extension>
+			</xs:simpleContent>
+		</xs:complexType>
+	</xs:element>
+	<xs:element name="only-before" type="xs:date">
+		<xs:annotation>
+			<xs:documentation>the access condition is only valid before the given date (format: “YYYY/MM/DD”).</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="only-after" type="xs:date">
+		<xs:annotation>
+			<xs:documentation>the access condition is only valid after the given date (format: “YYYY/MM/DD”). </xs:documentation>
+		</xs:annotation>
+	</xs:element>
+</xs:schema>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/de/mpiwg/itgroup/metadataManager/validation/data/sample-index-meta.xml	Sun Oct 23 21:29:45 2011 +0200
@@ -0,0 +1,435 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--Sample XML file generated by XMLSPY v5 U (http://www.xmlspy.com)-->
+<index_meta xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="\\.PSF\.Mac\Users\digigroup\Desktop\Windows_Shared_Folder\index_meta.xsd">
+	<resource type="String" version="String">
+		<description>String</description>
+		<name>String</name>
+		<creator>String</creator>
+		<archive-creation-date>1967-08-13</archive-creation-date>
+		<archive-storage-date>1967-08-13</archive-storage-date>
+		<archive-path>String</archive-path>
+		<archive-id>String</archive-id>
+		<derived-from>
+			<archive-id>String</archive-id>
+			<description>String</description>
+		</derived-from>
+		<media-type>image</media-type>
+		<meta workflow-state="Text">
+			<content-type>String</content-type>
+			<lang>en-us</lang>
+			<dri>String</dri>
+			<context>
+				<link>http://www.altova.com</link>
+				<name>String</name>
+				<meta-datalink db="String" object="String">
+					<label>String</label>
+					<url label="String">http://www.altova.com</url>
+					<metadata-url>http://www.altova.com</metadata-url>
+				</meta-datalink>
+				<meta-baselink db="String">
+					<label>String</label>
+					<url label="String">http://www.altova.com</url>
+					<metadata-url object="String">http://www.altova.com</metadata-url>
+				</meta-baselink>
+			</context>
+			<bib type="book">
+				<author>String</author>
+				<title>String</title>
+				<year>2001</year>
+				<series-editor>String</series-editor>
+				<series-title>String</series-title>
+				<series-volume>String</series-volume>
+				<number-of-pages>String</number-of-pages>
+				<city>String</city>
+				<publisher>String</publisher>
+				<edition>String</edition>
+				<number-of-volumes>String</number-of-volumes>
+				<translator>String</translator>
+				<isbn-issn>String</isbn-issn>
+				<call-number>String</call-number>
+				<holding-library>String</holding-library>
+			</bib>
+			<doc type="Architectural Drawing">
+				<person>String</person>
+				<location>String</location>
+				<date>2001</date>
+				<object>String</object>
+				<keywords>String</keywords>
+			</doc>
+			<toc>
+				<page>
+					<name>String</name>
+					<index>String</index>
+					<url label="String">http://www.altova.com</url>
+				</page>
+				<chapter>
+					<name>Text</name>
+					<start increment="String">
+						<name>String</name>
+						<index>String</index>
+						<url label="String">http://www.altova.com</url>
+					</start>
+					<end>
+						<name>String</name>
+						<index>String</index>
+						<url label="String">http://www.altova.com</url>
+					</end>
+					<page>String</page>
+				</chapter>
+			</toc>
+			<img>
+				<original-size-x>String</original-size-x>
+				<original-size-y>String</original-size-y>
+				<original-pixel-x>String</original-pixel-x>
+				<original-pixel-y>String</original-pixel-y>
+			</img>
+			<image-acquisition>
+				<device>String</device>
+				<image-type>String</image-type>
+				<production-comment>String</production-comment>
+			</image-acquisition>
+			<texttool>
+				<display>yes</display>
+				<text>String</text>
+				<image>String</image>
+				<figures>String</figures>
+				<text-url-path>String</text-url-path>
+				<xslt>String</xslt>
+				<pagebreak>String</pagebreak>
+				<presentation>String</presentation>
+				<toptemplate>String</toptemplate>
+				<digiliburlprefix>String</digiliburlprefix>
+				<thumbtemplate>String</thumbtemplate>
+			</texttool>
+			<access-conditions>
+				<attribution resource="text">
+					<name>String</name>
+					<url label="String">http://www.altova.com</url>
+					<description>String</description>
+				</attribution>
+				<copyright resource="text">
+					<owner>
+						<name>String</name>
+						<url label="String">http://www.altova.com</url>
+					</owner>
+					<date calendar="String">String</date>
+					<duration>String</duration>
+					<description>String</description>
+					<license>
+						<url label="String">http://www.altova.com</url>
+					</license>
+				</copyright>
+				<access resource="text" type="group">
+					<name>String</name>
+					<only-before>1967-08-13</only-before>
+					<only-after>1967-08-13</only-after>
+				</access>
+			</access-conditions>
+			<acquisition>
+				<provider>
+					<name>String</name>
+					<address>String</address>
+					<contact>String</contact>
+					<url label="String">http://www.altova.com</url>
+					<provider-id>String</provider-id>
+				</provider>
+				<date calendar="String">String</date>
+				<description>String</description>
+			</acquisition>
+			<film-acquisition>
+				<recording>
+					<author>String</author>
+					<date calendar="String">String</date>
+					<location>String</location>
+					<device>Text</device>
+					<format>Text</format>
+				</recording>
+				<description>String</description>
+			</film-acquisition>
+		</meta>
+		<dir>
+			<name>String</name>
+			<description>String</description>
+			<original-name>String</original-name>
+			<path>String</path>
+			<meta workflow-state="Text">
+				<content-type>String</content-type>
+				<lang>en-us</lang>
+				<dri>String</dri>
+				<context>
+					<link>http://www.altova.com</link>
+					<name>String</name>
+					<meta-datalink db="String" object="String">
+						<label>String</label>
+						<url label="String">http://www.altova.com</url>
+						<metadata-url>http://www.altova.com</metadata-url>
+					</meta-datalink>
+					<meta-baselink db="String">
+						<label>String</label>
+						<url label="String">http://www.altova.com</url>
+						<metadata-url object="String">http://www.altova.com</metadata-url>
+					</meta-baselink>
+				</context>
+				<bib type="book">
+					<author>String</author>
+					<title>String</title>
+					<year>2001</year>
+					<series-editor>String</series-editor>
+					<series-title>String</series-title>
+					<series-volume>String</series-volume>
+					<number-of-pages>String</number-of-pages>
+					<city>String</city>
+					<publisher>String</publisher>
+					<edition>String</edition>
+					<number-of-volumes>String</number-of-volumes>
+					<translator>String</translator>
+					<isbn-issn>String</isbn-issn>
+					<call-number>String</call-number>
+					<holding-library>String</holding-library>
+				</bib>
+				<doc type="Architectural Drawing">
+					<person>String</person>
+					<location>String</location>
+					<date>2001</date>
+					<object>String</object>
+					<keywords>String</keywords>
+				</doc>
+				<toc>
+					<page>
+						<name>String</name>
+						<index>String</index>
+						<url label="String">http://www.altova.com</url>
+					</page>
+					<chapter>
+						<name>Text</name>
+						<start increment="String">
+							<name>String</name>
+							<index>String</index>
+							<url label="String">http://www.altova.com</url>
+						</start>
+						<end>
+							<name>String</name>
+							<index>String</index>
+							<url label="String">http://www.altova.com</url>
+						</end>
+						<page>String</page>
+					</chapter>
+				</toc>
+				<img>
+					<original-size-x>String</original-size-x>
+					<original-size-y>String</original-size-y>
+					<original-pixel-x>String</original-pixel-x>
+					<original-pixel-y>String</original-pixel-y>
+				</img>
+				<image-acquisition>
+					<device>String</device>
+					<image-type>String</image-type>
+					<production-comment>String</production-comment>
+				</image-acquisition>
+				<texttool>
+					<display>yes</display>
+					<text>String</text>
+					<image>String</image>
+					<figures>String</figures>
+					<text-url-path>String</text-url-path>
+					<xslt>String</xslt>
+					<pagebreak>String</pagebreak>
+					<presentation>String</presentation>
+					<toptemplate>String</toptemplate>
+					<digiliburlprefix>String</digiliburlprefix>
+					<thumbtemplate>String</thumbtemplate>
+				</texttool>
+				<access-conditions>
+					<attribution resource="text">
+						<name>String</name>
+						<url label="String">http://www.altova.com</url>
+						<description>String</description>
+					</attribution>
+					<copyright resource="text">
+						<owner>
+							<name>String</name>
+							<url label="String">http://www.altova.com</url>
+						</owner>
+						<date calendar="String">String</date>
+						<duration>String</duration>
+						<description>String</description>
+						<license>
+							<url label="String">http://www.altova.com</url>
+						</license>
+					</copyright>
+					<access resource="text" type="group">
+						<name>String</name>
+						<only-before>1967-08-13</only-before>
+						<only-after>1967-08-13</only-after>
+					</access>
+				</access-conditions>
+				<acquisition>
+					<provider>
+						<name>String</name>
+						<address>String</address>
+						<contact>String</contact>
+						<url label="String">http://www.altova.com</url>
+						<provider-id>String</provider-id>
+					</provider>
+					<date calendar="String">String</date>
+					<description>String</description>
+				</acquisition>
+				<film-acquisition>
+					<recording>
+						<author>String</author>
+						<date calendar="String">String</date>
+						<location>String</location>
+						<device>Text</device>
+						<format>Text</format>
+					</recording>
+					<description>String</description>
+				</film-acquisition>
+			</meta>
+		</dir>
+		<file>
+			<name>String</name>
+			<description>String</description>
+			<original-name>String</original-name>
+			<path>String</path>
+			<date>1967-08-13</date>
+			<modification-date>1967-08-13</modification-date>
+			<creation-date>1967-08-13</creation-date>
+			<size>String</size>
+			<mime-type>String</mime-type>
+			<md5cs>String</md5cs>
+			<meta workflow-state="Text">
+				<content-type>String</content-type>
+				<lang>en-us</lang>
+				<dri>String</dri>
+				<context>
+					<link>http://www.altova.com</link>
+					<name>String</name>
+					<meta-datalink db="String" object="String">
+						<label>String</label>
+						<url label="String">http://www.altova.com</url>
+						<metadata-url>http://www.altova.com</metadata-url>
+					</meta-datalink>
+					<meta-baselink db="String">
+						<label>String</label>
+						<url label="String">http://www.altova.com</url>
+						<metadata-url object="String">http://www.altova.com</metadata-url>
+					</meta-baselink>
+				</context>
+				<bib type="book">
+					<author>String</author>
+					<title>String</title>
+					<year>2001</year>
+					<series-editor>String</series-editor>
+					<series-title>String</series-title>
+					<series-volume>String</series-volume>
+					<number-of-pages>String</number-of-pages>
+					<city>String</city>
+					<publisher>String</publisher>
+					<edition>String</edition>
+					<number-of-volumes>String</number-of-volumes>
+					<translator>String</translator>
+					<isbn-issn>String</isbn-issn>
+					<call-number>String</call-number>
+					<holding-library>String</holding-library>
+				</bib>
+				<doc type="Architectural Drawing">
+					<person>String</person>
+					<location>String</location>
+					<date>2001</date>
+					<object>String</object>
+					<keywords>String</keywords>
+				</doc>
+				<toc>
+					<page>
+						<name>String</name>
+						<index>String</index>
+						<url label="String">http://www.altova.com</url>
+					</page>
+					<chapter>
+						<name>Text</name>
+						<start increment="String">
+							<name>String</name>
+							<index>String</index>
+							<url label="String">http://www.altova.com</url>
+						</start>
+						<end>
+							<name>String</name>
+							<index>String</index>
+							<url label="String">http://www.altova.com</url>
+						</end>
+						<page>String</page>
+					</chapter>
+				</toc>
+				<img>
+					<original-size-x>String</original-size-x>
+					<original-size-y>String</original-size-y>
+					<original-pixel-x>String</original-pixel-x>
+					<original-pixel-y>String</original-pixel-y>
+				</img>
+				<image-acquisition>
+					<device>String</device>
+					<image-type>String</image-type>
+					<production-comment>String</production-comment>
+				</image-acquisition>
+				<texttool>
+					<display>yes</display>
+					<text>String</text>
+					<image>String</image>
+					<figures>String</figures>
+					<text-url-path>String</text-url-path>
+					<xslt>String</xslt>
+					<pagebreak>String</pagebreak>
+					<presentation>String</presentation>
+					<toptemplate>String</toptemplate>
+					<digiliburlprefix>String</digiliburlprefix>
+					<thumbtemplate>String</thumbtemplate>
+				</texttool>
+				<access-conditions>
+					<attribution resource="text">
+						<name>String</name>
+						<url label="String">http://www.altova.com</url>
+						<description>String</description>
+					</attribution>
+					<copyright resource="text">
+						<owner>
+							<name>String</name>
+							<url label="String">http://www.altova.com</url>
+						</owner>
+						<date calendar="String">String</date>
+						<duration>String</duration>
+						<description>String</description>
+						<license>
+							<url label="String">http://www.altova.com</url>
+						</license>
+					</copyright>
+					<access resource="text" type="group">
+						<name>String</name>
+						<only-before>1967-08-13</only-before>
+						<only-after>1967-08-13</only-after>
+					</access>
+				</access-conditions>
+				<acquisition>
+					<provider>
+						<name>String</name>
+						<address>String</address>
+						<contact>String</contact>
+						<url label="String">http://www.altova.com</url>
+						<provider-id>String</provider-id>
+					</provider>
+					<date calendar="String">String</date>
+					<description>String</description>
+				</acquisition>
+				<film-acquisition>
+					<recording>
+						<author>String</author>
+						<date calendar="String">String</date>
+						<location>String</location>
+						<device>Text</device>
+						<format>Text</format>
+					</recording>
+					<description>String</description>
+				</film-acquisition>
+			</meta>
+		</file>
+	</resource>
+</index_meta>