<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://filmstandards.org/schemas/EN15907-AppDefs-BA-DIF-COOP"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:cw="http://filmstandards.org/schemas/EN15907-r2"
    xmlns:bdc="http://filmstandards.org/schemas/EN15907-AppDefs-BA-DIF-COOP"
    >
    
    <xs:annotation>
        <xs:documentation>
            <p>BA-DIF-COOP: Type restrictions for EN 15907 metadata exchange 
                between Bundesarchiv-Filmarchiv and Deutsches Filminstitut (DIF).</p>
            <p>29-Nov-2017 Detlev Balzer</p>
            <p>13-Dec-2017 db - namespace changed to BA-DIF-COOP</p>
        </xs:documentation>
    </xs:annotation>

    <xs:import schemaLocation="http://filmstandards.org/schemas/EN15907-r2"
        namespace="http://filmstandards.org/schemas/EN15907-r2"/>

    <xs:complexType name="AgentActivity">
        <xs:annotation>
            <xs:documentation>
                <p>Implementation of Agent/Activity.</p>
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:restriction base="cw:AgentActivityType">
                <xs:enumeration value="2. Kamera"/>
                <xs:enumeration value="Adaption"/>
                <xs:enumeration value="Aktueller_Verleih"/>
                <xs:enumeration value="Animation"/>
                <xs:enumeration value="Animation"/>
                <xs:enumeration value="Animations-Kamera"/>
                <xs:enumeration value="Arrangement"/>
                <xs:enumeration value="Art Director"/>
                <xs:enumeration value="Assistenz-Regie"/>
                <xs:enumeration value="Associate_Producer"/>
                <xs:enumeration value="Aufnahmeleitung"/>
                <xs:enumeration value="Aufnahmeleitung_Sonstiges"/>
                <xs:enumeration value="Ausführender_Produzent"/>
                <xs:enumeration value="Außenrequisite"/>
                <xs:enumeration value="Ausstattung"/>
                <xs:enumeration value="Bau-Ausführung"/>
                <xs:enumeration value="Bauten"/>
                <xs:enumeration value="Bauten_Sonstiges"/>
                <xs:enumeration value="Beleuchter"/>
                <xs:enumeration value="Beratung"/>
                <xs:enumeration value="Buchhaltung"/>
                <xs:enumeration value="Bühne"/>
                <xs:enumeration value="Casting"/>
                <xs:enumeration value="Catering"/>
                <xs:enumeration value="Choreografie"/>
                <xs:enumeration value="Co-Autor"/>
                <xs:enumeration value="Continuity"/>
                <xs:enumeration value="Co-Produzent"/>
                <xs:enumeration value="Co-Regie"/>
                <xs:enumeration value="CR-Erstanbieter"/>
                <xs:enumeration value="Darsteller"/>
                <xs:enumeration value="Darsteller"/>
                <xs:enumeration value="Darsteller"/>
                <xs:enumeration value="Darsteller_Sonstiges"/>
                <xs:enumeration value="Deutsche Dialoge"/>
                <xs:enumeration value="Dialoge"/>
                <xs:enumeration value="Dialog-Regie"/>
                <xs:enumeration value="Dolly"/>
                <xs:enumeration value="Dramaturgie"/>
                <xs:enumeration value="Drehbuch"/>
                <xs:enumeration value="Drehbuch"/>
                <xs:enumeration value="Drehbuch-Mitarbeit"/>
                <xs:enumeration value="Drehbuch_Sonstiges"/>
                <xs:enumeration value="DVD-Erstanbieter"/>
                <xs:enumeration value="Erstverleih"/>
                <xs:enumeration value="Executive_Producer"/>
                <xs:enumeration value="Farbberatung"/>
                <xs:enumeration value="Farbkorrektur"/>
                <xs:enumeration value="fertiggestellt_von"/>
                <xs:enumeration value="Filmförderung"/>
                <xs:enumeration value="Filmförderung_Sonstiges"/>
                <xs:enumeration value="Frisuren"/>
                <xs:enumeration value="Garderobe"/>
                <xs:enumeration value="Geräusche"/>
                <xs:enumeration value="Geräusche-Schnitt"/>
                <xs:enumeration value="Gesang"/>
                <xs:enumeration value="Gesang"/>
                <xs:enumeration value="Gesang"/>
                <xs:enumeration value="Geschäftsführung"/>
                <xs:enumeration value="hat_Vorlage"/>
                <xs:enumeration value="hergestellt_von"/>
                <xs:enumeration value="Herstellungsleitung"/>
                <xs:enumeration value="Idee"/>
                <xs:enumeration value="im_Auftrag_von"/>
                <xs:enumeration value="in_Co-Produktion_mit"/>
                <xs:enumeration value="Innenrequisite"/>
                <xs:enumeration value="Interviews"/>
                <xs:enumeration value="in_Zusammenarbeit_mit"/>
                <xs:enumeration value="Kamera"/>
                <xs:enumeration value="Kamera"/>
                <xs:enumeration value="Kamera-Assistenz"/>
                <xs:enumeration value="Kamera-Bühne"/>
                <xs:enumeration value="Kameraführung"/>
                <xs:enumeration value="Kamera_Sonstiges"/>
                <xs:enumeration value="Kamera-Überwachung"/>
                <xs:enumeration value="Kasse"/>
                <xs:enumeration value="Kommentar"/>
                <xs:enumeration value="Kostüm-Ausführung"/>
                <xs:enumeration value="Kostüme"/>
                <xs:enumeration value="Kostüme"/>
                <xs:enumeration value="Kostüm-Entwurf"/>
                <xs:enumeration value="Kostüme_Sonstiges"/>
                <xs:enumeration value="Künstlerische_Oberleitung"/>
                <xs:enumeration value="Kunstmaler"/>
                <xs:enumeration value="Licht"/>
                <xs:enumeration value="Liedtexte"/>
                <xs:enumeration value="Line_Producer"/>
                <xs:enumeration value="Maske"/>
                <xs:enumeration value="Material-Assistenz"/>
                <xs:enumeration value="MAZ-Schnitt"/>
                <xs:enumeration value="Mischung"/>
                <xs:enumeration value="Mischung"/>
                <xs:enumeration value="Mitwirkung"/>
                <xs:enumeration value="Mitwirkung"/>
                <xs:enumeration value="Mitwirkung"/>
                <xs:enumeration value="Musik"/>
                <xs:enumeration value="Musik"/>
                <xs:enumeration value="Musik"/>
                <xs:enumeration value="Musikalische_Leitung"/>
                <xs:enumeration value="Musikalische_Vorlage"/>
                <xs:enumeration value="Musik-Ausführung"/>
                <xs:enumeration value="Musik-Ausführung"/>
                <xs:enumeration value="Musik-Ausführung"/>
                <xs:enumeration value="Musik-Bearbeitung"/>
                <xs:enumeration value="Musik-Beratung"/>
                <xs:enumeration value="Musik-Schnitt"/>
                <xs:enumeration value="Musik_Sonstiges"/>
                <xs:enumeration value="Musik-Tonaufnahme"/>
                <xs:enumeration value="Negativ-Schnitt"/>
                <xs:enumeration value="Optische_Spezialeffekte"/>
                <xs:enumeration value="Optische_Spezialeffekte"/>
                <xs:enumeration value="Originalgeschichte"/>
                <xs:enumeration value="Plastiken"/>
                <xs:enumeration value="Post-Production"/>
                <xs:enumeration value="Pre-Production"/>
                <xs:enumeration value="Producer"/>
                <xs:enumeration value="Production Design"/>
                <xs:enumeration value="Produktions-Assistenz"/>
                <xs:enumeration value="Produktionsfahrer"/>
                <xs:enumeration value="Produktionsfirma"/>
                <xs:enumeration value="Produktionsfirma_Sonstiges"/>
                <xs:enumeration value="Produktions-Koordination"/>
                <xs:enumeration value="Produktionsleitung"/>
                <xs:enumeration value="Produktionsleitung_Sonstiges"/>
                <xs:enumeration value="Produktions-Sekretariat"/>
                <xs:enumeration value="Produzent"/>
                <xs:enumeration value="Produzent_Sonstiges"/>
                <xs:enumeration value="Recherche"/>
                <xs:enumeration value="Redaktion"/>
                <xs:enumeration value="Regie"/>
                <xs:enumeration value="Regie"/>
                <xs:enumeration value="Regie_2_Stab"/>
                <xs:enumeration value="Regie-Assistenz"/>
                <xs:enumeration value="Regie-Assistenz_Sonstiges"/>
                <xs:enumeration value="Regie_Sonstiges"/>
                <xs:enumeration value="Regie-Volontär"/>
                <xs:enumeration value="Requisite"/>
                <xs:enumeration value="Schnitt"/>
                <xs:enumeration value="Schnitt"/>
                <xs:enumeration value="Schnitt-Assistenz"/>
                <xs:enumeration value="Schnitt_Sonstiges"/>
                <xs:enumeration value="Schnitt-Volontär"/>
                <xs:enumeration value="Script"/>
                <xs:enumeration value="Set Design"/>
                <xs:enumeration value="Set Dresser"/>
                <xs:enumeration value="Solisten"/>
                <xs:enumeration value="Sonstige_Produktionsangaben"/>
                <xs:enumeration value="Sonstiges"/>
                <xs:enumeration value="Sonstiges_Sonstiges"/>
                <xs:enumeration value="Späterer_Verleih"/>
                <xs:enumeration value="Spezialeffekte"/>
                <xs:enumeration value="Spezial-Maske"/>
                <xs:enumeration value="Sponsor"/>
                <xs:enumeration value="Sprecher"/>
                <xs:enumeration value="Standfotos"/>
                <xs:enumeration value="Steadycam"/>
                <xs:enumeration value="Stoff"/>
                <xs:enumeration value="Storyboard"/>
                <xs:enumeration value="Stunt-Koordination"/>
                <xs:enumeration value="Stunts"/>
                <xs:enumeration value="Stunts"/>
                <xs:enumeration value="Supervision"/>
                <xs:enumeration value="Synchronsprecher"/>
                <xs:enumeration value="Synchron-Ton"/>
                <xs:enumeration value="Synchron-Ton-Schnitt"/>
                <xs:enumeration value="Szenarium"/>
                <xs:enumeration value="Szenenbild"/>
                <xs:enumeration value="Titel"/>
                <xs:enumeration value="Titel"/>
                <xs:enumeration value="Titelgrafik"/>
                <xs:enumeration value="Ton"/>
                <xs:enumeration value="Ton"/>
                <xs:enumeration value="Ton-Assistenz"/>
                <xs:enumeration value="Ton-Bearbeitung"/>
                <xs:enumeration value="Ton-Design"/>
                <xs:enumeration value="Toneffekte"/>
                <xs:enumeration value="Ton-Schnitt"/>
                <xs:enumeration value="Ton_Sonstiges"/>
                <xs:enumeration value="Ton-Überwachung"/>
                <xs:enumeration value="Trick-Kamera"/>
                <xs:enumeration value="Trick-Kamera"/>
                <xs:enumeration value="Übersetzung"/>
                <xs:enumeration value="Verleih"/>
                <xs:enumeration value="Verleih_Sonstiges"/>
                <xs:enumeration value="Video-Erstanbieter"/>
                <xs:enumeration value="Video-Schnitt"/>
                <xs:enumeration value="Visuelle Effekte"/>
                <xs:enumeration value="Zeichnungen"/>
                <xs:enumeration value="Zwischentitel"/>
            </xs:restriction>
        </xs:simpleContent>
    </xs:complexType>

    <xs:complexType name="CodedRegion">
        <xs:annotation>
            <xs:documentation>
                <p>Implementation of CodedRegionType. </p>
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:restriction base="cw:CodedRegionType">
                <xs:attribute name="scheme" type="bdc:RegionCodeScheme" use="optional"
                    default="ISO 3166-2"/>
            </xs:restriction>
        </xs:simpleContent>
    </xs:complexType>
    
    <xs:simpleType name="RegionCodeScheme">
        <xs:restriction base="cw:RegionCodeSchemeEnum">
            <xs:enumeration value="ISO 3166-2"/>
            <xs:enumeration value="AFNOR XP Z44"/>
            <xs:enumeration value="MARC"/>
            <xs:enumeration value="Wikidata"/>
            <xs:enumeration value="DIF"/>
            <xs:enumeration value="BArch"/>
            <xs:enumeration value="none"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:complexType name="TitleRelationship">
        <xs:annotation>
            <xs:documentation>
                <p>Implementation of TitleRelationshipType.</p>
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:restriction base="cw:TitleRelationshipType">
                <xs:enumeration value="Originaltitel"/>
                <xs:enumeration value="Weiterer Titel"/>
                <xs:enumeration value="Schreibvariante"/>
                <xs:enumeration value="Reihentitel"/>
                <xs:enumeration value="Gesamttitel"/>
                <xs:enumeration value="Arbeitstitel"/>
                <xs:enumeration value="TV-Titel"/>
                <xs:enumeration value="Aufführungstitel"/>
                <xs:enumeration value="Verleihtitel"/>
                <xs:enumeration value="Titelübersetzung"/>
                <xs:enumeration value="Abschnittstitel"/>
                <xs:enumeration value="Untertitel"/>
                <xs:enumeration value="Zensurtitel"/>
                <xs:enumeration value="Video-Titel"/>
                <xs:enumeration value="Archivtitel"/>
            </xs:restriction>
        </xs:simpleContent>
    </xs:complexType>    
    
    <!-- cw:TermType can be restricted to any number of vocabularies 
         in addition to this one: -->
    <xs:complexType name="GenreForm">
        <xs:simpleContent>
            <xs:restriction base="cw:TermType">
                <xs:enumeration value="Kurz-Dokumentarfilm"/>
                <xs:enumeration value="Spielfilm"/>
                <xs:enumeration value="Dokumentarfilm"/>
                <xs:enumeration value="Kurz-Spielfilm"/>
                <xs:enumeration value="Tonbild"/>
                <xs:enumeration value="TV-Film"/>
                <xs:enumeration value="TV-Spiel"/>
                <xs:enumeration value="Episodenfilm"/>
                <xs:enumeration value="Experimentalfilm"/>
                <xs:enumeration value="Kurz-Dokumentarfilm"/>
                <xs:enumeration value="Amateurfilm"/>
                <xs:enumeration value="TV-Dokumentarfilm"/>
                <xs:enumeration value="Kurz-Experimentalfilm"/>
                <xs:enumeration value="Kurz-Animationsfilm"/>
            </xs:restriction>
        </xs:simpleContent>
    </xs:complexType>
    
    <xs:simpleType name="ManifestationType">
        <xs:restriction base="cw:ManifestationTypeType">
            <xs:enumeration value=".Original"/>
            <xs:enumeration value="TV-Fassung"/>
            <xs:enumeration value="Prüffassung"/>
            <xs:enumeration value="Kurzfassung"/>
            <xs:enumeration value="Verleihfassung"/>
            <xs:enumeration value="Formatfassung"/>
            <xs:enumeration value="Vorspann"/>
            <xs:enumeration value="Teilfassung"/>
            <xs:enumeration value="Archivfassung"/>
            <xs:enumeration value="DVD-Fassung"/>
            <xs:enumeration value="Langfassung"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:complexType name="DecisionType">
        <xs:simpleContent>
            <xs:restriction base="cw:DecisionTypeType">
                <xs:enumeration value="Zensur"/>
                <xs:enumeration value="FSK-Prüfung"/>
                <xs:enumeration value="Alliierte Militärzensur"/>
                <xs:enumeration value="Prüfung"/>
            </xs:restriction>
        </xs:simpleContent>
    </xs:complexType>
    
    <xs:complexType name="PublicationType">
        <xs:simpleContent>
            <xs:restriction base="cw:PublicationTypeType">
                <xs:enumeration value="Erstaufführung"/>
                <xs:enumeration value="Erstaufführung"/>
                <xs:enumeration value="Uraufführung"/>
                <xs:enumeration value="TV-Erstsendung"/>
                <xs:enumeration value="Voraufführung"/>
                <xs:enumeration value="Aufführung"/>
                <xs:enumeration value="Kinostart"/>
                <xs:enumeration value="Veröffentlichung"/>
                <xs:enumeration value="Video-Einsatz"/>
                <xs:enumeration value="DVD-Einsatz"/>
            </xs:restriction>
        </xs:simpleContent>
    </xs:complexType>
    
</xs:schema>
