<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <xs:schema 
        xmlns:xs="http://www.w3.org/2001/XMLSchema" 
        xmlns="http://www.isan.org/schema/v1.11/common/participant" 
    	  xmlns:common="http://www.isan.org/schema/v1.11/common/common" 
    	  targetNamespace="http://www.isan.org/schema/v1.11/common/participant" 
        elementFormDefault="qualified"
    	  version="1.1">
        
    	<xs:annotation>
    		<xs:documentation xml:lang="EN">
    			ISAN XML Schema: descriptive information of participants of an audiovisual work
    			Date: 31-01-2008
    			Copyight ISAN International Agency
    		</xs:documentation>
    	</xs:annotation>
    	
    	<xs:import namespace="http://www.isan.org/schema/v1.11/common/common" schemaLocation="http://www.isan.org/schema/v1.11/common/common.xsd"/>
    	<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/XML.xsd"/>
        
        <xs:complexType name="ParticipantListType">
            <xs:sequence>
                <xs:element name="Participant" type="ParticipantType"  maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
        <xs:complexType name="ParticipantType">
            <xs:sequence>        	
            	<xs:choice>
            		<xs:sequence>
            			<xs:element name="FirstName" minOccurs="0" type="ParticipantNameType"/>
            			<xs:element name="LastName" type="ParticipantNameType"/>
            			<xs:element name="RoleCode" type="ParticipantRoleCodeType"/>
            		</xs:sequence>
            		<xs:sequence>
            			<xs:element name="ParticipantId" type="common:IdType" />
            			<xs:element name="FirstName" minOccurs="0" type="ParticipantNameType"/>
            			<xs:element name="LastName" minOccurs="0" type="ParticipantNameType"/>
            			<xs:element name="RoleCode" type="ParticipantRoleCodeType"/>
            		</xs:sequence>
            	</xs:choice>
            </xs:sequence>
        </xs:complexType>
        <xs:simpleType name="ParticipantNameType">
            <xs:restriction base="xs:string">
            	<xs:minLength value="1"/>
                <xs:maxLength value="100"/>
            </xs:restriction>
        </xs:simpleType>
        <xs:simpleType name="ParticipantRoleCodeType">
        	<xs:annotation>
        		<xs:documentation xml:lang="EN">
        			ACT       :	   actor
        			ANC       :	   anchor
        			ART       :	   game artist
        			AUTH       :	   author
        			CAM       :	   Camera
        			CAS       :	   cast
        			CDES       :	   character designer
        			CHA       :	   character
        			COM       :	   composer
        			CREA       :	   creator
        			CUT       :	   Cutter
        			DEV       :	   DEV
        			DIR       :	   director
        			DIS       :	   distributor
        			EPRO       :	   executive producer
        			GDES       :	   game designer
        			GDIR       :	   game director
        			LPRO       :	   lead programmer
        			MUS       :	   music by
        			NAR       :	   narrator
        			PERF       :	   performer
        			PPROD       :	   post_production_editor
        			PRO       :	   producer
        			SCI       :	   scriptwriter
        			SCR       :	   screenwriter
        			SPK       :	   speaker
        			TVDIA       :	   tv_director_assistant
        			TVDIR       :	   tv_director
					CAN			:	Candidate 
					JUG			:		Judge
					COA			:		Coach
					HST			:		Host,Presenter
					COT			:		Commentator
					VOI			:		Voice (over)
					COD			:		Conductor
					MSC			:		Stage director
					ADA 	    :		Adaptation
					CON			:		Contributor
					CHO			:		Choreographer
					PAR			:		Participant
        			
        		</xs:documentation>
        	</xs:annotation>
        	<xs:restriction base="xs:string">
        		<xs:enumeration value="ACT"/>
        		<xs:enumeration value="ANC"/>
        		<xs:enumeration value="ART"/>
        		<xs:enumeration value="AUTH"/>
        		<xs:enumeration value="CAM"/>
        		<xs:enumeration value="CAS"/>
        		<xs:enumeration value="CDES"/>
        		<xs:enumeration value="CHA"/>
        		<xs:enumeration value="COM"/>
        		<xs:enumeration value="CREA"/>
        		<xs:enumeration value="CUT"/>
        		<xs:enumeration value="DEV"/>
        		<xs:enumeration value="DIR"/>
        		<xs:enumeration value="DIS"/>
        		<xs:enumeration value="EPRO"/>
        		<xs:enumeration value="GDES"/>
				<xs:enumeration value="GST"/>
        		<xs:enumeration value="GDIR"/>
        		<xs:enumeration value="LPRO"/>
        		<xs:enumeration value="MUS"/>
        		<xs:enumeration value="NAR"/>
        		<xs:enumeration value="PERF"/>
        		<xs:enumeration value="PPROD"/>
        		<xs:enumeration value="PRO"/>
        		<xs:enumeration value="SCI"/>
        		<xs:enumeration value="SCR"/>
        		<xs:enumeration value="SPK"/>
        		<xs:enumeration value="TVDIA"/>
        		<xs:enumeration value="TVDIR"/>
				<xs:enumeration value="CAN"/>
				<xs:enumeration value="JUG"/>
				<xs:enumeration value="COA"/>
				<xs:enumeration value="HST"/>
				<xs:enumeration value="COT"/>
				<xs:enumeration value="VOI"/>
				<xs:enumeration value="COD"/>
				<xs:enumeration value="MSC"/>
				<xs:enumeration value="ADA"/>
				<xs:enumeration value="CON"/>
				<xs:enumeration value="CHO"/>
				<xs:enumeration value="PAR"/>

        		
            </xs:restriction>
        </xs:simpleType>

</xs:schema>