<?xml version="1.0" encoding="UTF-8"?>
<!-- 
Schema für XML-Repräsentation filmografischer Daten auf filmportal-redaktion.de

Eine auf die Entität Filmwerk zentrierte Datensicht. Manifestationen und abhängige 
Entitäten werden vollständig wiedergegeben, Personen, Gruppen und Körperschaften nur 
als Referenzen.

Unberücksichtigt: Musikwerke, Plakate, Fotos, Textdokumente, Werkvorlagen

24-Mai-2006 Detlev Balzer (db@dbalzer.net)
Rev 1.0: 22-Jun-2006 db
Rev.1.0a 27-Jun-2006.db
Rev.1.1 28-Mrz-2007 db : Elemente Laenge und Dauer in Filmkopie ergänzt
Rev.1.2 11-Jul-2007 db : Element dif_export für Batch-Exporte; diverse sequence-Reihenfolgen 
  und Kardinalitäten geändert 
Rev.1.3 29-Mai-2009 db: Element Werkvorlage hinzugenommen, weil dies in Credits erscheint.
-->
<xs:schema targetNamespace="http://www.filmportal-zdb.de/schema/pdf-fw-view-1.3" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns="http://www.filmportal-zdb.de/schema/pdf-fw-view-1.3" 
elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.3">
	<xs:element name="dif_export">
		<xs:complexType>
			<xs:sequence maxOccurs="unbounded">
				<xs:element ref="Filmwerk"></xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Filmwerk">
		<xs:annotation>
			<xs:documentation>Filmwerk-Datensicht</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="ExtIDs" minOccurs="0"/>
				<xs:element ref="IDTitel"/>
				<xs:element ref="ProdJahr"/>
				<xs:element ref="Ordnungsdatum"/>
				<xs:element ref="Ursprungsland"/>
				<xs:element ref="Gattung" minOccurs="0"/>
				<xs:element ref="Anmerkung" minOccurs="0"/>
				<xs:element ref="FilmManifestation" maxOccurs="unbounded"/>
				<xs:element ref="DreharbeitenR" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="bewertet_als" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="ausgezeichnet_mit" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="Credits" minOccurs="0"/>
				<xs:element ref="Inhalte" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="RegionCode">
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="xs:string">
					<xs:attribute name="rang" type="xs:integer"/>
				</xs:extension>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>
	<xs:element name="Akte" type="xs:string"/>
	<xs:element name="Anmerkung" type="xs:string"/>
	<xs:element name="Anmerkungen" type="xs:string"/>
	<xs:element name="ArchivSignatur" type="xs:string"/>
	<xs:element name="Auffuehrung">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="AuffuehrungsArt" minOccurs="1"/>
				<xs:element ref="Zeitangabe" minOccurs="0"/>
				<xs:element ref="Region" minOccurs="0"/>
				<xs:element ref="Ort" minOccurs="0"/>
				<xs:element ref="Veranstaltung" minOccurs="0"/>
				<xs:element ref="Spielstaette" minOccurs="0"/>
				<xs:element ref="Anmerkung" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="AuffuehrungsArt" type="xs:string"/>
	<xs:element name="aufgeführt">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Auffuehrung"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="rang" type="xs:integer" use="optional"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="ausgezeichnet_mit">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Auszeichnung"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="detail" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Auszeichnung">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Bezeichnung" minOccurs="0"/>
				<xs:element ref="Veranstaltung" minOccurs="0"/>
				<xs:element ref="Zeitangabe"/>
				<xs:element ref="Leistung" minOccurs="0"/>
				<xs:element ref="Anmerkungen" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Besitzer" type="xs:string"/>
	<xs:element name="bewertet_als">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Praedikat"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Bezeichnung" type="xs:string"/>
	<xs:element name="Bildformat" type="xs:string"/>
	<xs:element name="CreditRel">
		<xs:complexType>
			<xs:sequence>
				<xs:choice>
					<xs:element ref="Person"/>
					<xs:element ref="Gruppe"/>
					<xs:element ref="Koerperschaft"/>
					<xs:element ref="Werkvorlage" minOccurs="0"/>
				</xs:choice>
				<xs:choice minOccurs="0" maxOccurs="unbounded">
					<xs:element ref="ausgezeichnet_mit" minOccurs="0" maxOccurs="unbounded"/>
					<xs:element ref="Synchronsprecher" minOccurs="0" maxOccurs="unbounded"/>
					<xs:element ref="Gesang" minOccurs="0" maxOccurs="unbounded"/>
				</xs:choice>
			</xs:sequence>
			<xs:attribute name="rel" type="xs:string"/>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="rang" type="xs:integer" use="optional"/>
			<xs:attribute name="alsName" type="xs:string" use="optional"/>
			<xs:attribute name="inRolle" type="xs:string" use="optional"/>
			<xs:attribute name="detail" type="xs:string" use="optional"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Credits">
		<xs:complexType>
			<xs:sequence maxOccurs="unbounded">
				<xs:element ref="CreditRel"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Dauer" type="xs:string"/>
	<xs:element name="Dreharbeiten">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Zeitangabe" minOccurs="0"/>
				<xs:element ref="Region" minOccurs="0"/>
				<xs:element ref="Orte" minOccurs="0"/>
				<xs:element ref="Anmerkung" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="DreharbeitenR">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Dreharbeiten"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="existiert_als">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Filmkopie"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="rang" type="xs:integer" use="optional"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="extid">
		<xs:annotation>
			<xs:documentation>Identifikator für dieses Filmwerk 
in einem anderen Informationssystem (angegeben im Attribut 'prefix')</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="xs:string">
					<xs:attribute name="prefix" type="xs:string"/>
				</xs:extension>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>
	<xs:element name="ExtIDs">
		<xs:complexType>
			<xs:sequence maxOccurs="unbounded">
				<xs:element ref="extid"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Farbe" type="xs:string"/>
	<xs:element name="Filmkopie">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Besitzer"/>
				<xs:element ref="ArchivSignatur" minOccurs="0"/>
				<xs:element ref="TraegerTyp" minOccurs="0"/>
				<xs:element ref="TraegerMerkmale" minOccurs="0"/>
				<xs:element ref="Laenge" minOccurs="0"/>
				<xs:element ref="Dauer" minOccurs="0"/>
				<xs:element ref="WerkTeil" minOccurs="0"/>
				<xs:element ref="Rechte" minOccurs="0"/>
				<xs:element ref="Anmerkung" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="FilmManifestation">
		<xs:complexType>
			<xs:choice maxOccurs="unbounded">
				<xs:element ref="WerkRelation"/>
				<xs:element ref="Akte" minOccurs="0"/>
				<xs:element ref="Laenge" minOccurs="0"/>
				<xs:element ref="Dauer" minOccurs="0"/>
				<xs:element ref="Traegerformat" minOccurs="0"/>
				<xs:element ref="Bildformat" minOccurs="0"/>
				<xs:element ref="Farbe" minOccurs="0"/>
				<xs:element ref="Ton" minOccurs="0"/>
				<xs:element ref="Anmerkung" minOccurs="0"/>
				<xs:element ref="aufgeführt" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="existiert_als" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="geprüft_in" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="hat_Titel" minOccurs="0" maxOccurs="unbounded"/>
			</xs:choice>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Filmpruefung">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="PruefungsArt"/>
				<xs:element ref="Zeitangabe" minOccurs="0"/>
				<xs:element ref="Region" minOccurs="0"/>
				<xs:element ref="Kennzeichen" minOccurs="0"/>
				<xs:element ref="Urteil" minOccurs="0"/>
				<xs:element ref="Anmerkung" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Filmtitel">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Titel"/>
				<xs:element ref="TitelTyp"/>
				<xs:element ref="Region" minOccurs="0"/>
				<xs:element ref="Zeitangabe" minOccurs="0"/>
				<xs:element ref="Anmerkung" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Gattung" type="xs:string"/>
	<xs:element name="geprüft_in">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Filmpruefung"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="rang" type="xs:integer" use="optional"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Gesang">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Person"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="alsName" type="xs:string"/>
			<xs:attribute name="detail" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Gruppe">
		<xs:complexType>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="idname" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="hat_Titel">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Filmtitel"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="rang" type="xs:integer" use="optional"/>
			<xs:attribute name="P2" type="xs:string"/>			
		</xs:complexType>
	</xs:element>
	<xs:element name="Herkunft"/>
	<xs:element name="Inhalt">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Texttyp"/>
				<xs:element ref="Sprache" minOccurs="0"/>
				<xs:element ref="Herkunft" minOccurs="0"/>
				<xs:element ref="Text"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Inhalte">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Inhalt" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="IDTitel">
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="xs:string">
					<xs:attribute name="sortval" type="xs:string"/>
				</xs:extension>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>
	<xs:element name="Kennzeichen" type="xs:string"/>
	<xs:element name="Koerperschaft">
		<xs:complexType>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="idname" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Laenge" type="xs:string"/>
	<xs:element name="Leistung" type="xs:string"/>
	<xs:element name="Ordnungsdatum" type="xs:string"/>
	<xs:element name="Ort" type="xs:string"/>
	<xs:element name="Orte" type="xs:string"/>
	<xs:element name="Praedikat">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Bezeichnung"/>
				<xs:element ref="Zeitangabe" minOccurs="0"/>
				<xs:element ref="Region" minOccurs="0"/>
				<xs:element ref="Anmerkung" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="ProdJahr" type="xs:string"/>
	<xs:element name="Region" type="RegionType"/>
	<xs:complexType name="RegionType">
		<xs:sequence>
			<xs:element ref="RegionCode" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="Person">
		<xs:complexType>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="idname" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="PruefungsArt" type="xs:string"/>
	<xs:element name="Rechte" type="xs:string"/>
	<xs:element name="Spielstaette" type="xs:string"/>
	<xs:element name="Sprache"/>
	<xs:element name="Synchronsprecher">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Person"/>
			</xs:sequence>
			<xs:attribute name="uid" type="xs:string"/>
			<xs:attribute name="alsName" type="xs:string"/>
			<xs:attribute name="detail" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Text"/>
	<xs:element name="Texttyp"/>
	<xs:element name="Titel">
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="xs:string">
					<xs:attribute name="sortval" type="xs:string"/>
				</xs:extension>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>
	<xs:element name="TitelTyp" type="xs:string"/>
	<xs:element name="Ton" type="xs:string"/>
	<xs:element name="Traegerformat" type="xs:string"/>
	<xs:element name="TraegerMerkmale" type="xs:string"/>
	<xs:element name="TraegerTyp" type="xs:string"/>
	<xs:element name="Ursprungsland">
		<xs:complexType>
			<xs:sequence maxOccurs="unbounded">
				<xs:element ref="Region"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Urteil" type="xs:string"/>
	<xs:element name="Veranstaltung" type="xs:string"/>
	<xs:element name="WerkRelation" type="xs:string"/>
	<xs:element name="WerkTeil" type="xs:string"/>
	<xs:element name="Werkvorlage">
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="xs:string">
					<xs:attribute name="uid" type="xs:string"/>
					<xs:attribute name="Titel" type="xs:string"/>
				</xs:extension>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element> 
	<xs:element name="Zeitangabe" type="xs:string"/>
</xs:schema>
