<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:ddexC="http://ddex.net/xml/20120404/ddexC" xmlns:ddex="http://ddex.net/xml/20120404/ddex"
   xmlns:iso639a2="http://ddex.net/xml/20120404/iso639a2"
   xmlns:iso4217a="http://ddex.net/xml/20120404/iso4217a"
   xmlns:iso3166a2="http://ddex.net/xml/20120404/iso3166a2"
   targetNamespace="http://ddex.net/xml/20120404/ddexC" elementFormDefault="unqualified"
   attributeFormDefault="unqualified">
   <xs:import namespace="http://ddex.net/xml/20120404/ddex" schemaLocation="ddex.xsd"/>
   <xs:import namespace="http://ddex.net/xml/20120404/iso639a2" schemaLocation="iso639a2.xsd"/>
   <xs:import namespace="http://ddex.net/xml/20120404/iso4217a" schemaLocation="iso4217a.xsd"/>
   <xs:import namespace="http://ddex.net/xml/20120404/iso3166a2" schemaLocation="iso3166a2.xsd"/>
   <xs:annotation>
      <xs:documentation>© 2006-2012 Digital Data Exchange, LLC (DDEX)</xs:documentation>
   </xs:annotation>
   <xs:complexType name="AdditionalInformation">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:AdditionalInformation.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:AdditionalInformation as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="AdministratingRecordCompany">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:AdministratingRecordCompany.</xs:documentation>
      </xs:annotation>
      <xs:choice>
         <xs:element name="PartyId" type="ddexC:PartyId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:sequence>
            <xs:element name="PartyName" maxOccurs="unbounded" type="ddexC:PartyName">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the PartyName(s).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="PartyId" minOccurs="0" type="ddexC:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:sequence>
      </xs:choice>
      <xs:attribute name="Namespace" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Namespace of the Role if it belongs to a proprietary scheme. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="UserDefinedValue" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:Role. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Role" type="ddex:AdministratingRecordCompanyRole" use="required">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The role played by the ddex:Party responsible for administering Rights in a ddex:Resource or a ddex:Release.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="AmountByUseAndDistributionChannelType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:Amount specified for a ddex:UseType and a ddex:DistributionChannelType.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Amount" type="xs:decimal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Amount specified for the ddex:UseType and the ddex:DistributionChannelType.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UseType" maxOccurs="unbounded" type="ddexC:UseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a nature of a ddex:Service, or a ddex:Release, as used by a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserInterfaceType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:UserInterfaceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a physical interface by which a ddex:Consumer uses a ddex:Service or ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DistributionChannelType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:DistributionChannelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a distribution channel used to disseminate a ddex:Service or ddex:Release to a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CarrierType" minOccurs="0" maxOccurs="unbounded" type="ddexC:CarrierType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Carrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="AmountPerCollection">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:Amount that has to be paid per ddex:Collection.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Amount" type="xs:decimal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Amount specified for the ddex:CollectionType.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionType" type="ddexC:CollectionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of the ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Annotation">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:Annotation.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:Annotation as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="AppliedRoyaltyRate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an applied ddex:RoyaltyRate.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="ValueType" type="ddex:ValueType" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Type of the numeric value specified for the ddex:RoyaltyRate. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="RoyaltyRateType" type="ddex:RoyaltyRateType" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Type of ddex:RoyaltyRate upon which the per unit royalty is calculated. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:RoyaltyRateType if it is ddex:UserDefined. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:RoyaltyRateType if it is ddex:UserDefined. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Artist">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:Artist. An ddex:Artist may be described through ddex:Name, ddex:Identifier and Roles.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" type="ddexC:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ddexC:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId" minOccurs="0" type="ddexC:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="ArtistRole" minOccurs="0" maxOccurs="unbounded" type="ddexC:ArtistRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a role played by the ddexC:Artist in relation to other ddex:Artists.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="SequenceNumber" type="xs:integer">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The number indicating the order of the ddexC:Artist in a group of ddex:Artists. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ArtistRole">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:ArtistRole. Note: This can be used in a ddex:DdexMessage in relation to any ddex:Performance or ddex:Fixation either of which may form the whole or part of the ddex:Resource itself. Example: if an 'AssociatedPerformer' is shown as a ddex:Contributor to a ddex:MusicalWork it refers to a ddex:Performer of a ddex:Resource (e.g. a ddex:SoundRecording) expressing the ddex:MusicalWork.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ArtistRole">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ArtistRole. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:ArtistRole. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="AudioCodecType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:AudioCodecType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:AudioCodecType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Identifier of the ddex:Version of the ddexC:AudioCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:AudioCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:AudioCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="AvRating">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a rating for an audio-visual ddex:Creation.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="RatingText" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The text of the ddexC:AvRating.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RatingAgency" type="ddexC:RatingAgency">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an Organization that issues the ddexC:AvRating.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="BitRate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:BitRate and a ddex:UnitOfMeasure.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="UnitOfMeasure" type="ddex:UnitOfBitRate">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:UnitOfMeasure of the ddexC:BitRate. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CLine">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CLine.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Year" minOccurs="0" type="xs:gYear">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Year of the ddexC:CLine.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLineCompany" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Name of the company releasing the ddex:Creation. This may be an owner or a licensee of the ddex:Creation.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLineText" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The text of the ddexC:CLine. (Note: DDEX expects to deprecate the use of the CLineText element in a subsequent version of this standard. It will be deprecated once users of the standard are able to provide CLine information in a structured form.)</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddex:CLineText as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="CalculationType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CalculationType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:CalculationType">
            <xs:attribute name="SequenceNumber" type="xs:integer">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The number indicating the order of the ddexC:CalculationType in a group of ddex:CalculationTypes. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CarrierType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CarrierType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:CarrierType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:CarrierType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:CarrierType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CatalogNumber">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CatalogNumber.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="Namespace" type="xs:string" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:CatalogNumber. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CdProtectionType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CdProtectionType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:CdProtectionType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:CdProtectionType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:CdProtectionType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Character">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Character. A ddex:Character may be described through ddex:Name, ddex:Identifier and Roles.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" type="ddexC:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ddexC:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId" minOccurs="0" type="ddexC:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="ResourceContributor" minOccurs="0" type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Name, ddex:Identifier and role(s) of a ddex:Contributor.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="SequenceNumber" type="xs:integer">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The number indicating the order of the ddexC:Character in a group of ddex:Characters. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="Collection">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Collection.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CollectionId" maxOccurs="unbounded" type="ddexC:CollectionId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:Identifier of the ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:CollectionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of the ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Identifier (specific to the ddex:Message) of the ddex:Collection within the ddex:Release which contains it. This is a ddex:LocalCollectionAnchor starting with the letter X.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="X[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="Title" minOccurs="0" maxOccurs="unbounded" type="ddexC:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Title of the ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Contributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details a ddex:Contributor to the ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionCollectionReferenceList" minOccurs="0"
            type="ddexC:CollectionCollectionReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of ddex:CollectionCollectionReferences for a ddex:Collection (specific to this ddex:Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsComplete" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddex:Collection is complete (=True) or not (=False). Only one of the Elements ddex:IsComplete here and in the ddexC:CollectionDetailsByTerritory is valid for a given ddexC:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DurationOfMusicalContent" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Duration of the musical content (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CreationDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:Collection was created.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:Collection was or will be first made available for Usage, whether for physical or electronic/online distribution (in ISO 8601:2004 format: YYYY-MM-DD).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalLanguage" minOccurs="0" type="iso639a2:LanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The orignal ddex:Language of the ddex:Collection (represented by an ISO 639-2 iso639a2:LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionDetailsByTerritory" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:CollectionDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors and other attributes of the ddex:Collection which may vary according to ddex:Territory of release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionResourceReferenceList" minOccurs="0"
            type="ddexC:CollectionResourceReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of ddex:CollectionResourceReferences for a ddex:Resource (specific to this ddex:Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddex:Collection as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="CollectionCollectionReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:CollectionCollectionReference.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="SequenceNumber" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number indicating the order of the ddex:Collection in a group of ddex:Collections within a ddex:Medley, ddex:SoundRecording or other ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionCollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:Collection (specific to this ddex:Message). This is a ddex:LocalCollectionAnchorReference starting with the letter X. The referenced ddex:Collection has to be of ddex:CollectionType ddex:Series, ddex:Season or ddex:Episode.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="X[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="StartTime" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The start time of the ddex:Creation, measured from the start of the ddex:Resource from which the ddex:CueSheet is referenced (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Duration of the use of the ddex:Creation that is referenced in the ddex:CueCreationReference (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="EndTime" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The end time of the ddex:Creation, measured from the start of the ddex:Resource from which the ddex:CueSheet is referenced (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="InclusionDate" minOccurs="0" type="xs:dateTime">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Date on which the ddex:Collection or ddex:Resource was included in the parent ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CollectionCollectionReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of ddex:CollectionCollectionReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="NumberOfCollections" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of referenced ddexC:Collections (typically Chapters).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionCollectionReference" maxOccurs="unbounded"
            type="ddexC:CollectionCollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:CollectionCollectionReference for a ddex:Collection (specific to this ddex:Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CollectionDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors and other attributes of a ddex:Collection which may vary according to ddex:Territory of release. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:Collection details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:Collection details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title" minOccurs="0" maxOccurs="unbounded" type="ddexC:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Title of the ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Contributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Contributor to the ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsComplete" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddex:Collection is complete (=True) or not (=False). Only one of the Elements ddex:IsComplete here and in the Collection is valid for a given Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CollectionId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a CollectionId.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="GRid" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:GRid identifying the ddex:Collection. This is the preferred ddex:Element and is mandatory if a ddex:GRid is available. A ddex:GRid comprises four parts: the xs:string 'A1', followed by five alphanumeric characters, ten alphanumeric characters and and one alphanumeric character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISRC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISRC (International Standard ddex:Recording Code as defined in  ISO 3901) for the ddex:Collection. An ddex:ISRC comprises four parts: two characters, followed by three alphanumeric characters, then two digits and five digits. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISAN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISAN (International Standard Audiovisual Number as defined in ISO 15706) for the ddex:Collection. An ddex:ISAN comprises four blocks of four hexadecimal charaters followed by a check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VISAN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The V-ISAN (Version ddex:Identifier of a International Standard Audiovisual Number as defined in ISO 15706-2) for the ddex:Collection. A V-ISAN comprises four blocks of four hexadecimal charaters followed by a check character, followed by two further blocks of four hexadecimal characters, followed by a further check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ICPN" minOccurs="0" type="ddexC:ICPN">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:ICPN used as proxy for identification of the ddex:Collection. Only applicable when the ddex:Collection is an abstraction of a complete ddex:PhysicalProduct. An ddex:ICPN comprises 12 or 13 digits, depending whether it is an ddex:EAN (13) or a ddex:UPC (12).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CatalogNumber" minOccurs="0" type="ddexC:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CatalogNumber of the ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:Collection (usually one per society involved in the messaging).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="CollectionList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of one or more ddex:Collections.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Collection" maxOccurs="unbounded" type="ddexC:Collection">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Collection contained in a ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the CollectionList as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="CollectionResourceReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of ddex:CollectionResourceReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CollectionResourceReference" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:Resource (specific to this ddex:Message). This is a ddex:LocalResourceAnchorReference starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CollectionType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CollectionType. ddex:Collections referenced from ddex:Video ddex:Resources are of ddex:CollectionType ddex:VideoChapter . ddex:Collections referenced from a ddex:Release composite are of ddex:CollectionType ddex:Series, ddex:Season or ddex:Episode.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:CollectionType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:CollectionType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:CollectionType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Comment">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:Comment.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:Comment as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CommercialModelType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CommercialModelType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:CommercialModelType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:CommercialModelType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:CommercialModelType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ConsumerRentalPeriod">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Period a ddex:DSP may rent something to a ddex:Customer.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:duration">
            <xs:attribute name="IsExtensible" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Flag indicating whether a ddex:Period can be extended after the end of a ddex:Deal (=True) or not (=False). This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ContainerFormat">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ContainerFormat.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ContainerFormat">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:ContainerFormat. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:ContainerFormat. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CourtesyLine">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:CourtesyLine.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:CourtesyLine as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CreationId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CreationIds.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISWC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISWC (International Standard Musical ddex:Work Code defined in ISO 15707) identifying the ddex:MusicalWork. An ddex:ISWC comprises three parts: the letter 'T', followed by nine digits and then one check digit.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OpusNumber" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddexC:MusicalWorkId identifying the ddex:MusicalWork within the catalog of its ddex:Composer (typically of classical music) as an opus number.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ComposerCatalogNumber" minOccurs="0" maxOccurs="unbounded"
            type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddexC:MusicalWorkId identifying a ddex:MusicalWork within the catalog of its ddex:Composer (typically of classical music) according to a standardized numbering (e.g. 'K' numbers for Koechel's catalog of Mozart).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISRC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISRC (International Standard ddex:Recording Code as defined in  ISO 3901) for the ddex:Resource. An ddex:ISRC comprises four parts: two characters, followed by three alphanumeric characters, then two digits and five digits. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISMN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISMN (International Standard Music Number defined in ISO 10957) for the ddex:Resource. An ddex:ISMN is a thirteen-digit number. Pre-2008 ddex:ISMNs, which had 10 characters and are now deprecated, are converted by replacing the initial letter ('M') with '979-0'.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISAN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISAN (International Standard Audiovisual Number as defined in ISO 15706) for the ddex:Resource. An ddex:ISAN comprises four blocks of four hexadecimal charaters followed by a check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VISAN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The V-ISAN (Version ddex:Identifier of a International Standard Audiovisual Number as defined in ISO 15706-2) for the ddex:Resource. A V-ISAN comprises four blocks of four hexadecimal charaters followed by a check character, followed by two further blocks of four hexadecimal characters, followed by a further check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISBN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISBN (International Standard Book Number defined in ISO 2108) for the ddex:Resource. An ddex:ISBN is a 13-digit number. Pre-2007, ddex:ISBNs, which had 10-digits and are now deprecated, are converted by adding the prefix '978' and re-calculating the check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISSN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISSN (International Standard Serial Number defined in ISO 3297) for the ddex:Resource. An ddex:ISSN comprises two groups of four digits, separated by a hyphen and a control digit.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SICI" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:SICI (Serial Item and Contribution ddex:Identifier defined in ANSI/NISO Z39.56-199)  for the ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CatalogNumber" minOccurs="0" type="ddexC:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CatalogNumber of the ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:Creation.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Cue">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Cue.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CueUseType" minOccurs="0" type="ddexC:CueUseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:UseType of the ddexC:Cue. It can be expected that this element will be contractually mandatory in many communications of cue sheets to music rights societies.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CueThemeType" minOccurs="0" type="ddexC:CueThemeType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ThemeType for the ddex:Creation referenced in the ddexC:Cue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CueVocalType" minOccurs="0" type="ddexC:CueVocalType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:VocalType for the ddex:Creation referenced in the ddexC:Cue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsDance" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Flag indicating whether a ddex:Creation contains dancing (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CueVisualPerceptionType" minOccurs="0"
            type="ddexC:CueVisualPerceptionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:VisualPerceptionType for the ddex:Creation referenced in the ddexC:Cue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CueOrigin" minOccurs="0" type="ddexC:CueOrigin">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CueOrigin for the ddexC:Cue. It can be expected that this element will be contractually mandatory in many communications of cue sheets to music rights societies.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="CueCreationReference" maxOccurs="unbounded"
               type="ddexC:CueCreationReference">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:CueCreationReference for a ddex:Creation (specific to this ddex:Message).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="ReferencedCreationType" minOccurs="0" type="ddex:CreationType">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Type of the ddex:Creation referenced in the ddexC:Cue.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="ReferencedCreationId" minOccurs="0" type="ddexC:CreationId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CreationIds.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="ReferencedCreationTitle" minOccurs="0" maxOccurs="unbounded"
                  type="ddexC:Title">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Title of the ddex:Creation referenced in the ddexC:Cue.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="ReferencedCreationContributor" minOccurs="0" maxOccurs="unbounded"
                  type="ddexC:ResourceContributor">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details a ddex:Contributor of the ddex:Creation referenced in the ddexC:Cue.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="HasMusicalContent" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Flag indicating whether whether the ddex:Creation referenced in the ddexC:Cue contains musical content such as a ddex:SoundRecording or a ddex:MusicalWork (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="StartTime" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The start time of the ddex:Creation, measured from the start of the ddex:Resource from which the ddex:CueSheet is referenced (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Duration of the use of the ddex:Creation that is referenced in the ddex:CueCreationReference (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="EndTime" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The end time of the ddex:Creation, measured from the start of the ddex:Resource from which the ddex:CueSheet is referenced (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CueCreationReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:CueCreationReference.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="CueWorkReference">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:Work (specific to this ddex:Message). This is a ddex:LocalMusicalWorkAnchorReference starting with the letter W.</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:IDREF">
                     <xs:pattern value="W[\d\-_a-zA-Z]+"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="CueResourceReference">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:Resource (specific to this ddex:Message). This is a ddex:LocalResourceAnchorReference starting with the letter A.</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:IDREF">
                     <xs:pattern value="A[\d\-_a-zA-Z]+"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
         </xs:choice>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CueOrigin">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CueOrigin.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:CueOrigin">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:CueOrigin. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:CueOrigin. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CueSheet">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CueSheet.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CueSheetId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CueSheetId of the ddexC:CueSheet.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CueSheetReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Identifier (specific to the ddex:Message) of the ddexC:CueSheet within the ddex:Release which contains it. This is a ddex:LocalCueSheetAnchor starting with the letter Q.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="Q[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="CueSheetType" type="ddexC:CueSheetType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Type of the ddexC:CueSheet.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Cue" maxOccurs="unbounded" type="ddexC:Cue">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Cue.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CueSheetList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of one or more ddex:CueSheets.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CueSheet" maxOccurs="unbounded" type="ddexC:CueSheet">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CueSheet contained in a ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CueSheetType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CueSheetType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:CueSheetType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:CueSheetType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:CueSheetType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CueThemeType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ThemeType for a ddex:Creation referenced in a ddex:Cue.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ThemeType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:ThemeType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:ThemeType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CueUseType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:CueUseType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:CueUseType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:CueUseType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:CueUseType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CueVisualPerceptionType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:VisualPerceptionType for a ddex:Creation referenced in a ddex:Cue.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:VisualPerceptionType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:VisualPerceptionType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:VisualPerceptionType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="CueVocalType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:VocalType for a ddex:Creation referenced in a ddex:Cue.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:VocalType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:VocalType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:VocalType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="DSP">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:DSP acting as a ddex:Licensee in a commercial relationship.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" type="ddexC:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ddexC:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId" minOccurs="0" type="ddexC:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="TradingName" minOccurs="0" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:TradingName of the ddexC:DSP.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="URL" minOccurs="0" maxOccurs="unbounded" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:URL for the DSP's web site.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TerritoryCode" minOccurs="0" type="ddexC:TerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Territory from which the ddexC:DSP operates (represented by an ISO 3166-1 iso3166a2:TerritoryCode). This ddex:Territory may differ from the one in which ddex:SalesTransactions occur.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:DSP as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="DealReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:DealReference.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:DealReference as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="DeductionRate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:DeductionRate.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="DeductionRateType" type="ddex:DeductionRateType" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Type of ddexC:DeductionRate. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="DeductionDescription" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Description of the ddex:Deduction to be applied to an ddex:Amount to determine the actual ddex:Amount paid. This is a text string with no prescribed allowed values.This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddex:DeductionDescription as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Description">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:Description.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:Description as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="DistributionChannelDescriptor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:DistributionChannelDescriptor.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:DistributionChannelDescriptor as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="DistributionChannelType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:DistributionChannelType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:DistributionChannelType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:DistributionChannelType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:DistributionChannelType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="DrmPlatformType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:DrmPlatformType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:DrmPlatformType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Identifier of the ddex:Version of the ddexC:DrmPlatformType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:DrmPlatformType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:DrmPlatformType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="DurationByUseType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Duration specified for a ddex:UseType.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Duration" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Duration specified for the ddex:UseType.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UseType" maxOccurs="unbounded" type="ddexC:UseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a nature of a ddex:Service, or a ddex:Release, as used by a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserInterfaceType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:UserInterfaceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a physical interface by which a ddex:Consumer uses a ddex:Service or ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DistributionChannelType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:DistributionChannelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a distribution channel used to disseminate a ddex:Service or ddex:Release to a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CarrierType" minOccurs="0" maxOccurs="unbounded" type="ddexC:CarrierType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Carrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ErnMessageInBatch">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an Release Notification ddex:Message in a ddex:Batch.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MessageType" type="ddex:ErnMessageType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Type of ddex:Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageId" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">An ddex:Identifier of the ddex:Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="URL" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:URL of the ddex:Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IncludedReleaseId" maxOccurs="unbounded" type="ddexC:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:ReleaseIds. If available, a ddex:GRid should always be used.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DeliveryType" type="ddexC:MessageActionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of action that the ddex:MessageSender applies to the ddex:Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProductType" type="ddexC:ProductType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of a ddex:Product defining which kinds of ddex:Products are within the delivered batch. Each batch may only contain one type of ddex:Products.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="HashSum" type="ddexC:HashSum">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:HashSum of the ddexC:File and information about the algorithm with which it has been generated.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="Signature" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A digital signature in accordance with DDEX-DSIG.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="EventDate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of an ddex:Event.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:date">
            <xs:attribute name="IsApproximate" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the reported Date is approximate (=True) or exact (=False). This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsBefore" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddex:Event being described occurred sometime before the reported Date (=True) or not (=False). This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsAfter" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddex:Event being described occurred sometime after the reported Date (=True) or not (=False). This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="TerritoryCode" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Territory in which the ddex:Event occurred (represented by an ISO 3166-1 iso3166a2:TerritoryCode). This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LocationDescription" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Description of the location in which the ddex:Event occurred. It offers the opportunity to describe a place more precisely than using the iso3166a2:TerritoryCode. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:LocationDescription as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="EventDateTime">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:DateTime and ddex:Place of an ddex:Event.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:dateTime">
            <xs:attribute name="IsApproximate" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the reported ddex:DateTime is approximate (=True) or exact (=False). This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsBefore" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddex:Event being described occurred sometime before the reported ddex:DateTime (=True) or not (=False). This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsAfter" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddex:Event being described occurred sometime after the reported ddex:DateTime (=True) or not (=False). This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="TerritoryCode" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Territory in which the ddex:Event occurred (represented by an ISO 3166-1 iso3166a2:TerritoryCode). This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LocationDescription" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Description of the location in which the ddex:Event occurred. It offers the opportunity to describe a place more precisely than using the iso3166a2:TerritoryCode. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:LocationDescription as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Extent">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing an ddex:Extent and a ddex:UnitOfMeasure.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="UnitOfMeasure" type="ddex:UnitOfExtent">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:UnitOfMeasure of the ddexC:Extent. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ExternalLocationDescriptor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:ExternalLocationDescriptor.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="DescriptorSyntax" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Type of the ddex:Descriptor according to how it is defined syntactically. For example, using a namespace (typically using a DPID) for a proprietary syntax or 'URI' for a uniform resource identifier as defined in RFC 1630). This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ExternalResourceLink">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of promotional or other material in digital form related to a ddex:Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="URL" maxOccurs="unbounded" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:URL of the linked external ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ValidityPeriod" minOccurs="0" type="ddexC:Period">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details about the ddex:Period of ddex:Time during which the ddexC:ExternalResourceLink is active.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ExternalLink" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Identifier which provides a communication link to the related external ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ExternallyLinkedResourceType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ExternallyLinkedResourceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of a ddex:Resource pointed to by the ddexC:ExternalResourceLink.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FileFormat" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:FileFormat of the external ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ExternallyLinkedResourceType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:ExternallyLinkedResourceType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ExternallyLinkedResourceType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ExternallyLinkedResourceType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:ExternallyLinkedResourceType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="File">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:File.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:sequence>
               <xs:element name="FileName" type="xs:string">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Name of the ddexC:File.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="FilePath" minOccurs="0" type="xs:string">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A location of the ddexC:File.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
            <xs:element name="URL" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:URL of the ddex:File.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="HashSum" minOccurs="0" type="ddexC:HashSum">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:HashSum of the ddexC:File and information about the algorithm with which it has been generated.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Fingerprint">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Fingerprint and its governing algorithm.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Fingerprint" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The value of the ddexC:Fingerprint.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FingerprintAlgorithmType" type="ddexC:FingerprintAlgorithmType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of FingerprintAlgorithm governing the ddexC:Fingerprint.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FingerprintAlgorithmVersion" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Identifier of the ddex:Version of the FingerprintAlgorithm.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FingerprintAlgorithmParameter" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A parameter of the FingerprintAlgorithm.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="FingerprintAlgorithmType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:FingerprintAlgorithmType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:FingerprintAlgorithmType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:FingerprintAlgorithmType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:FingerprintAlgorithmType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="FrameRate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:FrameRate and a ddex:UnitOfMeasure.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="UnitOfMeasure" type="ddex:UnitOfFrameRate">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:UnitOfMeasure of the ddexC:FrameRate. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="FulfillmentDate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:FulfillmentDate.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="FulfillmentDate" type="xs:date">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Date after which an end user can receive the ddex:Resource (in ISO 8601:2004 format: YYYY-MM-DD). If no ddexC:FulfillmentDate is provided the ddexC:FulfillmentDate is the ddex:StartDate of the respective ddex:Deal. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReleaseReference" minOccurs="0" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Identifier (specific to the ddex:Message) of a ddex:Release for a ddex:Resource. This is a ddex:LocalReleaseAnchorReference starting with the letter R.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="R[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Genre">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Genre.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="GenreText" type="ddexC:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:Description of a genre or style (such as Musical, literary or audio-visual) with which a ddex:Creation is associated.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SubGenre" minOccurs="0" type="ddexC:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:Description of a secondary genre or style with which a ddex:Creation is associated.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:Genre as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="GoverningAgreementType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:GoverningAgreementType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:GoverningAgreementType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:GoverningAgreementType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:GoverningAgreementType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="GuaranteedAmount">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:GuaranteedAmount.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="CurrencyCode" type="ddexC:CurrencyCode" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Currency of the ddexC:GuaranteedAmount (represented by an ISO 4217 iso4217a:CurrencyCode). This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="ReferenceUnit" type="ddex:ReferenceUnit" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A unit to which the ddexC:GuaranteedAmount refers (per ddex:Use or for the whole ddex:License).</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="HashSum">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:HashSum and its governing algorithm.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="HashSum" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The value of the ddexC:HashSum.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="HashSumAlgorithmType" type="ddexC:HashSumAlgorithmType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of ddex:HashSumAlgorithm governing the ddexC:HashSum.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="HashSumAlgorithmType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:HashSumAlgorithmType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:HashSumAlgorithmType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:HashSumAlgorithmType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:HashSumAlgorithmType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="HostSoundCarrier">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:HostSoundCarrier of a ddex:SoundRecording. This ddex:Composite exists in the Release Notification Message Suite Standard to support the identification and matching of ddex:SoundRecording information.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseId" minOccurs="0" maxOccurs="unbounded" type="ddexC:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:ReleaseIds of the ddexC:HostSoundCarrier. If available, a ddex:GRid has to be used. If the ddexC:HostSoundCarrier contains only one ddex:SoundRecording, the ddex:ISRC of the ddex:SoundRecording may be used instead.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:License, ddex:Claim, ddex:RightShare or contract for the MusicalWork(s) used in the ddexC:HostSoundCarrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Title" minOccurs="0" maxOccurs="unbounded" type="ddexC:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Title of the ddexC:HostSoundCarrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist" minOccurs="0" maxOccurs="unbounded" type="ddexC:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:DisplayArtist for the ddexC:HostSoundCarrier. The ddex:DisplayArtist may be described through ddex:Name, ddex:Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AdministratingRecordCompany" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:AdministratingRecordCompany">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:AdministratingRecordCompany for the Rights in the ddexC:HostSoundCarrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TrackNumber" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:TrackNumber of the ddex:SoundRecording within the ddexC:HostSoundCarrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VolumeNumberInSet" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:SequenceNumber within the ddex:Set of the volume containing the ddex:SoundRecording, where the ddexC:HostSoundCarrier is a ddex:Set (such as a 'box set' of CDs).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ICPN">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:ICPN.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="IsEan" type="xs:boolean" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddexC:ICPN is specifically an ddex:EAN (=True) or a ddex:UPC (=False). This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ImageCodecType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:ImageCodecType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ImageCodecType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Identifier of the ddex:Version of the ddexC:ImageCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ImageCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:ImageCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ImageDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors, Dates and other attributes of an ddex:Image which may vary according to ddex:Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:Image details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:Image details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="ResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Contributor to the ddex:Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an indirect ddex:Contributor to the ddex:Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CLine for the ddex:Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Description" minOccurs="0" type="ddexC:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:Description of the subject of the ddex:Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ddexC:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing an ddex:Annotation which acknowledges record companies and/or other Parties giving permission for ddex:Artists or others featured on the ddex:Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:Image was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:ImageDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ImageId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of an ddex:Image.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ProprietaryId" maxOccurs="unbounded" type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ImageType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:ImageType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ImageType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ImageType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:ImageType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="IndirectResourceContributor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Name, ddex:Identifier and role(s) of an indirect ddex:Contributor to a ddex:Resource.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" type="ddexC:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ddexC:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId" minOccurs="0" type="ddexC:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="IndirectResourceContributorRole" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:MusicalWorkContributorRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a role played by the indirect ddex:Contributor.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="SequenceNumber" type="xs:integer">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The number indicating the order of the indirect ResourceContributor in a group of ResourceContributors that have contributed to a ddex:Resource. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="Keywords">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Description containing ddex:Keywords.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:Keywords as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="LabelName">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:LabelName.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:LabelName as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LabelNameType" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Type of ddex:LabelName. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="LicenseOrClaimRefusalReason">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:LicenseOrClaimRefusalReason.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:LicenseOrClaimRefusalReason">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:LicenseOrClaimRefusalReason. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:LicenseOrClaimRefusalReason. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="LicenseOrClaimRequestUpdateReason">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:LicenseOrClaimRequestUpdateReason.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:LicenseOrClaimRequestUpdateReason">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:LicenseOrClaimRequestUpdateReason. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:LicenseOrClaimRequestUpdateReason. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="LicenseOrClaimUpdateReason">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:LicenseOrClaimUpdateReason.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:LicenseOrClaimUpdateReason">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:LicenseOrClaimUpdateReason. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:LicenseOrClaimUpdateReason. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="LinkedReleaseResourceReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:LinkedReleaseResourceReference for a ddex:Resource which is linked to a ddex:ContentItem.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:LocalResourceAnchorReference">
            <xs:attribute name="LinkDescription" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing a  ddex:Description of the link for the ddex:ReleaseResourceReference.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:LinkDescription as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="MessageActionType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MessageActionType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:MessageActionType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:MessageActionType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:MessageActionType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="MessageAuditTrail">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing information about Parties in between the original ddex:MessageSender and ultimate ddex:MessageRecipient.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MessageAuditTrailEvent" maxOccurs="unbounded"
            type="ddexC:MessageAuditTrailEvent">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Party handling the ddex:Message and the ddex:Time at which the handling took place.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:MessageAuditTrail as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MessageAuditTrailEvent">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Party handling a ddex:Message and the ddex:Time at which the handling took place.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MessagingPartyDescriptor" type="ddexC:MessagingParty">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MessagingParty.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DateTime" type="xs:dateTime">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:DateTime at which the ddex:Message was handled by the ddex:MessagingParty (the only allowed format is ISO 8601:2004: YYYY-MM-DDThh:mm:ssTZD).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="MessageHeader">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite placed at the beginning of each ddex:DdexMessage providing information about the ddex:Message, such as ddex:MessageSender, ddex:MessageRecipient and a ddex:Message creation time stamp.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MessageThreadId" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A xs:string used to uniquely identify the thread of ddex:Messages of which the current ddex:Message is a part. One example of such a 'thread' is the chain of NewReleaseMessages being sent from ddex:ReleaseCreator to wholesale ddex:ReleaseDistributor 1 to retail ddex:DSP when communicating information about the same Release(s). A common ddex:MessageThreadId will allow all these messages to be tied together.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageId" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A xs:string used to uniquely identify the current ddex:Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageFileName" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:FileName, possibly including the ddex:FilePath, of the XML ddex:File containing the current ddex:Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageSender" type="ddexC:MessagingParty">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:MessageSender.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SentOnBehalfOf" minOccurs="0" type="ddexC:MessagingParty">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Party on whose behalf the ddex:Message is sent.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageRecipient" type="ddexC:MessagingParty">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:MessageRecipient.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageCreatedDateTime" type="xs:dateTime">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:DateTime on which the ddex:Message was created (the only allowed format is ISO 8601:2004: YYYY-MM-DDThh:mm:ssTZD).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageAuditTrail" minOccurs="0" type="ddexC:MessageAuditTrail">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing information about Parties in between the original ddex:MessageSender and ultimate ddex:MessageRecipient.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Comment" minOccurs="0" type="ddexC:Comment">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a human-readable ddex:Comment about the ddex:Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageControlType" minOccurs="0" type="ddex:MessageControlType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The indicator used to distinguish a live ddex:Message from a test ddex:Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:MessageHeader as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MessageNotificationPeriod">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a reporting ddex:Period covered by a ddex:Message. It must contain at least one out of ddex:StartDate or ddex:EndDate. The ddex:StartDate must be earlier than the ddex:EndDate if both are provided.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="StartDate" type="xs:date">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Date that marks the beginning of the ddex:Period (in ISO 8601:2004 format: YYYY-MM-DD). This cannot be a Date in the future.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="EndDate" type="xs:date">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Date that marks the end of the ddex:Period (in ISO 8601:2004 format: YYYY-MM-DD). This cannot be a Date in the future.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="MessagingParty">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MessagingParty.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="PartyId" type="ddexC:PartyId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party handling the ddex:Message. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PartyName" minOccurs="0" type="ddexC:PartyName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyNames for the ddex:Party handling the ddex:Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TradingName" minOccurs="0" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:TradingName for the ddex:Party handling the ddex:Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:MessagingParty as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MidiDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors and other attributes of a ddex:MIDI which may vary according to ddex:Territory of release. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:MIDI details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:MIDI details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title" minOccurs="0" maxOccurs="unbounded" type="ddexC:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Title of the ddex:MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist" minOccurs="0" maxOccurs="unbounded" type="ddexC:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:DisplayArtist for the ddex:MIDI. The ddex:DisplayArtist may be described through ddex:Name, ddex:Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Contributor to the ddex:MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an indirect ddex:Contributor to the ddex:MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:License, ddex:Claim, ddex:RightShare or contract for the MusicalWork(s) used in the ddex:MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName" minOccurs="0" maxOccurs="unbounded" type="ddexC:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the ddex:Name of the ddex:Label under which the ddex:Release is to be marketed.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsController" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:RightsController">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:RightsController of Rights in the ddex:MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RemasteredDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:MIDI was re-mastered (usually digitally).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:MIDI was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CLine for the ddex:MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:MidiDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MidiId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a Midi.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ProprietaryId" maxOccurs="unbounded" type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the Midi.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MidiType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MidiType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:MidiType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:MidiType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:MidiType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="MusicalWork">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MusicalWork.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MusicalWorkId" maxOccurs="unbounded" type="ddexC:MusicalWorkId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MusicalWorkId of the ddexC:MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Identifier (specific to the ddex:Message) of the ddexC:MusicalWork within the ddex:Release which contains it. This is a ddex:LocalMusicalWorkAnchor starting with the letter W.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="W[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="ReferenceTitle" maxOccurs="unbounded" type="ddexC:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReferenceTitle of the ddexC:MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:License, ddex:Claim, ddex:RightShare or contract for the ddexC:MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkContributor" maxOccurs="unbounded"
            type="ddexC:MusicalWorkContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details a ddex:MusicalWorkContributor to the ddexC:MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:MusicalWorkType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of the ddexC:MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightShare" minOccurs="0" maxOccurs="unbounded" type="ddexC:RightShare">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:RightShare for the ddexC:MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkDetailsByTerritory" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:MusicalWorkDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors and other attributes of the ddexC:MusicalWork which may vary according to ddex:Territory of release. </xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsUpdated" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddexC:MusicalWork ddex:Element was updated (=True) or not (=False). The ddex:Flag may only be used when the ddex:UpdateIndicator is set to ddex:UpdateMessage. When this ddex:Boolean ddex:Flag is set to true, the ddex:MessageRecipient is expected to replace any previously provided ddexC:MusicalWork data with the now provided data.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:MusicalWork as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MusicalWorkContributor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details a ddex:MusicalWorkContributor.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" type="ddexC:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ddexC:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId" minOccurs="0" type="ddexC:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="MusicalWorkContributorRole" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:MusicalWorkContributorRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a role played by the ddex:Contributor in relation to the ddex:MusicalWork. Note: This can be used in a ddex:DdexMessage in relation to any ddex:Work, ddex:Performance or ddex:Fixation any of which may form the whole or part of the ddex:Resource itself. Example: if an 'AssociatedPerformer' is shown as a ddex:Contributor to a ddex:MusicalWork it refers to a performer of a ddex:Resource (e.g. a ddex:SoundRecording) expressing the ddex:MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SocietyAffiliation" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:SocietyAffiliation">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a society affiliation for the ddexC:MusicalWorkContributor.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="SequenceNumber" type="xs:integer">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The number indicating the order of the ddexC:MusicalWorkContributor in a group of ddex:MusicalWorkContributors that have contributed to a ddex:MusicalWork. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MusicalWorkContributorRole">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MusicalWorkContributorRole. Note: This can be used in a ddex:DdexMessage in relation to any ddex:Work, ddex:Performance or ddex:Fixation any of which may form the whole or part of the ddex:Resource itself. Example: if an 'AssociatedPerformer' is shown as a ddex:Contributor to a ddex:MusicalWork it refers to a performer of a ddex:Resource (e.g. a ddex:SoundRecording) expressing the ddex:MusicalWork.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:MusicalWorkContributorRole">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:MusicalWorkContributorRole. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:MusicalWorkContributorRole. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="MusicalWorkDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors and other attributes of a ddex:MusicalWork which may vary according to ddex:Territory of release. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:MusicalWork details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:MusicalWork details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="MusicalWorkContributor" maxOccurs="unbounded"
            type="ddexC:MusicalWorkContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details a ddex:MusicalWorkContributor to the ddex:MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:MusicalWorkDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MusicalWorkId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MusicalWorkId.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISWC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISWC (International Standard Musical ddex:Work Code defined in ISO 15707) identifying the ddex:MusicalWork. An ddex:ISWC comprises three parts: the letter 'T', followed by nine digits and then one check digit.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OpusNumber" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddexC:MusicalWorkId identifying the ddex:MusicalWork within the catalog of its ddex:Composer (typically of classical music) as an opus number.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ComposerCatalogNumber" minOccurs="0" maxOccurs="unbounded"
            type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddexC:MusicalWorkId identifying a ddex:MusicalWork within the catalog of its ddex:Composer (typically of classical music) according to a standardized numbering (e.g. 'K' numbers for Koechel's catalog of Mozart).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MusicalWorkType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MusicalWorkType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:MusicalWorkType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:MusicalWorkType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:MusicalWorkType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Name">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Name.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:Name as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="NumberOfDataMismatchItems">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:NumberOfDataMismatchItems.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:integer">
            <xs:attribute name="DataMismatchStatus" type="ddex:DataMismatchStatus">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A status of the DataMismatch(es). This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="NumberOfSubscribers">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:NumberOfSubscribers (applicable only where a ddex:Subscription ddex:Service is employed).</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Quantity" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of ddex:Consumers using the ddex:DSP service specified for the ddex:UseType.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UseType" maxOccurs="unbounded" type="ddexC:UseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a nature of a ddex:Service, or a ddex:Release, as used by a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserInterfaceType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:UserInterfaceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a physical interface by which a ddex:Consumer uses a ddex:Service or ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DistributionChannelType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:DistributionChannelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a distribution channel used to disseminate a ddex:Service or ddex:Release to a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CarrierType" minOccurs="0" maxOccurs="unbounded" type="ddexC:CarrierType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Carrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="OperatingSystemType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:OperatingSystemType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:OperatingSystemType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Identifier of the ddex:Version of the ddexC:OperatingSystemType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:OperatingSystemType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:OperatingSystemType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="OrderType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:OrderType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:OrderType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:OrderType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:OrderType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="PLine">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:PLine.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Year" minOccurs="0" type="xs:gYear">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Year of the ddexC:PLine.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLineCompany" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Name of the company releasing the ddex:Creation. This may be an owner or a licensee of the ddex:Creation.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLineText" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The text of the ddexC:PLine. (Note: DDEX expects to deprecate the use of the PLineText element in a subsequent version of this standard. It will be deprecated once users of the standard are able to provide PLine information in a structured form.)</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddex:PLineText as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="PLineType" type="ddex:PLineType">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">A ddex:Type of ddex:PLine. This is represented in an XML schema as an XML ddex:Attribute. If this ddex:Attribute is not provided, it is assumed that the ddex:PLine is a ddex:OriginalPLine.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ParentalWarningType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ParentalWarningType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ParentalWarningType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ParentalWarningType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:ParentalWarningType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="PartyDescriptor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Party. Parties are typically described through ddex:Names and/or ddex:Identifiers.</xs:documentation>
      </xs:annotation>
      <xs:choice>
         <xs:element name="PartyId" type="ddexC:PartyId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:sequence>
            <xs:element name="PartyName" maxOccurs="unbounded" type="ddexC:PartyName">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the PartyName(s).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="PartyId" minOccurs="0" type="ddexC:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:sequence>
      </xs:choice>
   </xs:complexType>
   <xs:complexType name="PartyId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:PartyId. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:PartyId if it belongs to a proprietary ddex:Party xs:ID scheme. If the ddexC:PartyId is a DPID, the ddex:Namespace ddex:Element must not be used. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsDPID" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddexC:PartyId is a ddex:DPID (=True) or not (=False). This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsISNI" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddexC:PartyId is an ddex:ISNI (=True) or not (=False). This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="PartyName">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:PartyName. ddex:Name details for a ddex:Party typically either contain a ddex:FullName or a ddex:KeyName.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="FullName" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the complete ddex:Name of the ddex:Party, in its normal form of presentation (e.g. John H. Smith, Acme Music Inc, A ddex:Composite containing the Beatles).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FullNameAsciiTranscribed" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:FullName transcribed using 7-bit ddex:ASCII code.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FullNameIndexed" minOccurs="0" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the complete ddex:Name of the ddex:Party in the form in which it normally appears in an alphabetic index, with the ddex:KeyName first (e.g. Smith, John H.; Beatles, A ddex:Composite containing the).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NamesBeforeKeyName" minOccurs="0" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the Name(s) preceding the ddex:KeyName in the ddex:FullName (and that is placed after it in a ddex:FullNameIndexed). Examples: 'George' in 'George Michael'; 'John Fitzgerald' in 'John Fitzgerald Kennedy'. Not all ddex:PartyNames have a ddex:NamesBeforeKeyName (e.g. Madonna, EMI Music Inc).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="KeyName" minOccurs="0" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the ddex:Part of a ddex:Name of the ddex:Party normally used to index an entry in an alphabetical list, such as 'Smith' (in John Smith) or 'Garcia Marquez' or 'Madonna' or 'Francis de Sales' (in Saint Francis de Sales). For persons, this normally corresponds to the 'family name' or names, which in Western name forms usually comes as a surname at the end of a ddex:FullName, and in Asian name forms often at the beginning of a ddex:FullName. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NamesAfterKeyName" minOccurs="0" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the Name(s) following the ddex:KeyName. Example:'Ibrahim' (in Anwar Ibrahim). This is common, e.g., in many Asian personal name forms where a ddex:FullName begins with the ddex:KeyName, which is followed by other names.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AbbreviatedName" minOccurs="0" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a short version of the ddexC:PartyName (e.g. for use on devices with a small display).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:PartyName as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="Period">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details about a ddex:Period of ddex:Time. ddex:Periods are typically described by at least a ddex:StartDate or ddex:EndDate.</xs:documentation>
      </xs:annotation>
      <xs:choice>
         <xs:sequence>
            <xs:element name="StartDate" minOccurs="0" type="ddexC:EventDate">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of an ddex:Event that marks the beginning of the ddexC:Period (in ISO 8601:2004 format: YYYY-MM-DD). The ddex:StartDate must be earlier than the ddex:EndDate if both are provided.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="EndDate" minOccurs="0" type="ddexC:EventDate">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of an ddex:Event that marks the end of the ddexC:Period (in ISO 8601:2004 format: YYYY-MM-DD). The ddex:EndDate must be later than the ddex:StartDate if both are provided.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:sequence>
         <xs:sequence>
            <xs:element name="StartDateTime" minOccurs="0" type="ddexC:EventDateTime">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:DateTime and ddex:Place of an ddex:Event that marks the beginning of the ddexC:Period (in ISO 8601:2004 format: YYYY-DD-MMThh:mm:ss). The StartDateTime must be earlier than the EndDateTime if both are provided.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="EndDateTime" minOccurs="0" type="ddexC:EventDateTime">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:DateTime and ddex:Place of an ddex:Event that marks the end of the ddexC:Period (in ISO 8601:2004 format: YYYY-DD-MMThh:mm:ss). The EndDateTime must be later than the StartDateTime if both are provided.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:sequence>
      </xs:choice>
   </xs:complexType>
   <xs:complexType name="Price">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Price.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="CurrencyCode" type="ddexC:CurrencyCode" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Currency of the ddexC:Price (represented by an ISO 4217 iso4217a:CurrencyCode). This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="PriceConsumerPaidExcSalesTax">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:PriceConsumerPaidExcSalesTax.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="CurrencyCode" type="ddexC:CurrencyCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Currency of the ddex:Price (represented by an ISO 4217 iso4217a:CurrencyCode). This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="PriceInformation">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Price.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Description" minOccurs="0" type="ddexC:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:Description of the differences between multiple ddexC:PriceInformation ddex:Composites.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PriceRangeType" minOccurs="0" type="ddexC:PriceRangeType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:Type of ddex:Price according to its value range. Typical examples include 'budget' and 'front line'.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PriceType" minOccurs="0" type="ddexC:PriceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing further details of the ddex:Price. Often used to refine the ddex:PriceRangeType.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="WholesalePricePerUnit" minOccurs="0" type="ddexC:Price">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a wholesale ddex:Price for a single unit of Usage. Note that this ddex:Price applies to all ddex:UseTypes referenced in a DealTerm ddex:Composite.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="BulkOrderWholesalePricePerUnit" minOccurs="0" type="ddexC:Price">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a wholesale ddex:Price for a single unit. Note that the size of a bulk order is defined in the contract between ddex:MessageSender and the ddex:MessageRecipient.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SuggestedRetailPrice" minOccurs="0" type="ddexC:Price">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a suggested retail ddex:Price.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="PriceRangeType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:PriceRangeType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:PriceRangeType">
            <xs:attribute name="Namespace" type="xs:string" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:PriceRangeType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="PriceType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:PriceType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:PriceType">
            <xs:attribute name="Namespace" type="xs:string" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:PriceType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ProductType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProductType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ProductType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:ProductType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:ProductType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="PromotionalCode">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:PromotionalCode.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:PromotionalCode. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ProprietaryId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="Namespace" type="xs:string" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ProprietaryId. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Purpose">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Purpose.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:Purpose">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:Purpose. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:Purpose. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="RatingAgency">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:RatingAgency.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:RatingAgency">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:RatingAgency. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:RatingAgency. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Reason">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Reason.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:Reason as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ReasonType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReasonType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ReasonType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:ReasonType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:ReasonType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="RecordCompanyMarketShareData">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing information to support the calculation of a record company's market share of all ddex:Releases provided by a ddex:DSP to ddex:Consumers for a specified ddex:UseType.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseType" minOccurs="0" maxOccurs="unbounded" type="ddexC:ReleaseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the form in which a ddex:ReleaseCreator anticipates offering the ddex:Release to ddex:Consumers.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UnitsSoldTotal" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The total number of ddex:Releases sold of the ddex:ReleaseType.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UseType" minOccurs="0" maxOccurs="unbounded" type="ddexC:UseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a nature of a ddex:Service, or a ddex:Release, as used by a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserInterfaceType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:UserInterfaceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a physical interface by which a ddex:Consumer uses a ddex:Service or ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DistributionChannelType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:DistributionChannelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a distribution channel used to disseminate a ddex:Service or ddex:Release to a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CarrierType" minOccurs="0" maxOccurs="unbounded" type="ddexC:CarrierType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Carrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="RedeliveryReasonType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:RedeliveryReasonType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:RedeliveryReasonType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:RedeliveryReasonType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:RedeliveryReasonType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ReferenceTitle">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReferenceTitle.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TitleText" type="ddexC:TitleText">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the text of the ddexC:ReferenceTitle.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SubTitle" minOccurs="0" type="ddexC:SubTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SubTitle of the ddexC:ReferenceTitle, including ddex:Titles of ddex:Versions used to differentiate different versions of the same ddex:Title, as required by the ddex:GRid and ddex:ISRC ddex:ReferenceDescriptiveMetadataSets (where the SubTitle is called ddex:Version ddex:Title).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:ReferenceTitle as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="RelatedLicenseOrClaimId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a RelatedLicenseOrClaimId.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="LicenseOrClaimId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:Identifier of the ddex:License or ddex:Claim.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LicenseOrClaimUpdateReason" minOccurs="0"
            type="ddexC:LicenseOrClaimUpdateReason">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a reason for an updated mwl:LicenseOrClaim.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="RelatedLicenseOrClaimRequestId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a RelatedLicenseOrClaimRequestId.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="LicenseOrClaimRequestId" minOccurs="0" type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:Identifier of mwl:LicenseOrClaimRequest.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LicenseOrClaimRequestUpdateReason" minOccurs="0"
            type="ddexC:LicenseOrClaimRequestUpdateReason">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a reason for an updated mwl:LicenseOrClaimRequest.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="RelatedRelease">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Release (or a ddex:PhysicalProduct or a ddex:DigitalProduct derived from such a ddex:Release) which is related to a ddex:Resource, ddex:Release or ddex:Product.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseId" maxOccurs="unbounded" type="ddexC:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:ReleaseIds. If available, a ddex:GRid shall always to be used. If the ddex:Release contains only one ddex:SoundRecording, the ddex:ISRC of the ddex:SoundRecording may be used instead. If the ddex:Release is an abstraction of a complete ddex:PhysicalProduct (such as a CD ddex:Album), the ddex:ICPN of the ddex:PhysicalProduct may be used instead. More than one of these identifiers may be provided.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReferenceTitle" minOccurs="0" type="ddexC:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:ReferenceTitle of the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseSummaryDetailsByTerritory" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ReleaseSummaryDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing summary details of ddex:Descriptors and other attributes of the ddex:Release which may vary according to ddex:Territory of ddex:Release. ddex:Territory of ddex:Release may be the world.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:License, ddex:Claim, ddex:RightShare or contract for the MusicalWork(s) used in the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseRelationshipType" type="ddexC:ReleaseRelationshipType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of the relationship between the two ddex:Releases.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the related ddex:Release is made available for Usage.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:Release was or will be first made available for Usage, whether for physical or electronic/online distribution (in ISO 8601:2004 format: YYYY-MM-DD).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ReleatedRelease as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ReleaseAvailabilityStatus">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReleaseAvailabilityStatus.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ReleaseAvailabilityStatus">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:ReleaseAvailabilityStatus. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:ReleaseAvailabilityStatus. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ReleaseCollectionReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReleaseCollectionReference.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:LocalCollectionAnchorReference">
            <xs:attribute name="ReleaseResourceType" type="ddex:ReleaseResourceType">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Type of ddex:Collection in the context of a ddex:Release. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ReleaseCollectionReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of ddex:ReleaseCollectionReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="NumberOfCollections" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of referenced ddexC:Collections (typically Chapters).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseCollectionReference" maxOccurs="unbounded"
            type="ddexC:ReleaseCollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:ReleaseCollectionReference for a ddex:Collection (specific to this ddex:Message). The referenced ddex:Collection has to be of ddex:CollectionType ddex:Series, ddex:Season or ddex:Episode.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ReleaseDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors and other attributes of a ddex:Release which may vary according to ddex:Territory of release. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddexC:ReleaseSummaryDetailsByTerritory apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddexC:ReleaseSummaryDetailsByTerritory do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="DisplayArtistName" minOccurs="0" maxOccurs="unbounded" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the ddex:Name to be used by a ddex:DSP when presenting ddex:Artist details of the ddex:Release to a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName" minOccurs="0" maxOccurs="unbounded" type="ddexC:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the ddex:Name of the ddex:Label for the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:License, ddex:Claim, ddex:RightShare or contract for the MusicalWork(s) used in the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Title" minOccurs="0" maxOccurs="unbounded" type="ddexC:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Title of the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist" maxOccurs="unbounded" type="ddexC:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:DisplayArtist for the ddex:Release. The ddex:DisplayArtist may be described through ddex:Name, ddex:Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsMultiArtistCompilation" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddex:Release is a multiartist compilation (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AdministratingRecordCompany" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:AdministratingRecordCompany">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:AdministratingRecordCompany for the ddex:Release. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseType" minOccurs="0" maxOccurs="unbounded" type="ddexC:ReleaseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the form in which a ddex:ReleaseCreator anticipates offering the ddex:Release to ddex:Consumers. This overrides the ddex:ReleaseType specified globally for the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RelatedRelease" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:RelatedRelease">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Release (or a ddex:PhysicalProduct or a ddex:DigitalProduct derived from such a ddex:Release) which is related to this ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:ReleaseSummaryDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ReleaseId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReleaseId. If available, a ddex:GRid should always to be used. If the ddex:Release contains only one ddex:SoundRecording, the ddex:ISRC of the ddex:SoundRecording may be used instead. If the ddex:Release is an abstraction of a complete ddex:PhysicalProduct (such as a CD ddex:Album), the ddex:ICPN of the ddex:PhysicalProduct may be used instead.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="GRid" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:GRid identifying the ddex:Release. This is the preferred ddex:Element and is mandatory if a ddex:GRid is available. A ddex:GRid comprises four parts: the xs:string 'A1', followed by five alphanumeric characters, ten alphanumeric characters and and one alphanumeric character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISRC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISRC (International Standard ddex:Recording Code as defined in  ISO 3901) used as proxy for identification of the ddex:Release. Only applicable when the ddex:Release only contains one ddex:SoundRecording or one ddex:MusicalWorkVideo. An ddex:ISRC comprises four parts: two characters, followed by three alphanumeric characters, then two digits and five digits. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ICPN" minOccurs="0" type="ddexC:ICPN">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:ICPN used as proxy for identification of the ddex:Release. Only applicable when the ddex:Release is an abstraction of a complete ddex:PhysicalProduct. An ddex:ICPN comprises 12 or 13 digits, depending whether it is an ddex:EAN (13) or a ddex:UPC (12).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CatalogNumber" minOccurs="0" type="ddexC:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CatalogNumber of the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ReleaseRelationshipType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReleaseRelationshipType, e.g. between an ddex:AudioClipRelease and a ddex:VideoClipRelease.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ReleaseRelationshipType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ReleaseRelationshipType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:ReleaseRelationshipType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ReleaseResourceReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReleaseResourceReference.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:LocalResourceAnchorReference">
            <xs:attribute name="ReleaseResourceType" type="ddex:ReleaseResourceType">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Type of ddex:Resource in the context of a ddex:Release. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ReleaseResourceReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of ddex:ReleaseResourceReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseResourceReference" maxOccurs="unbounded"
            type="ddexC:ReleaseResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:Reference for a ddex:Resource (specific to this ddex:Message). The ddex:LocalAnchorReference in this ddex:Composite is a xs:string starting with the letter A.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ReleaseSummary">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing summary details of a ddex:Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseId" maxOccurs="unbounded" type="ddexC:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:ReleaseIds. If available, a ddex:GRid shall always to be used. If the ddex:Release contains only one ddex:SoundRecording, the ddex:ISRC of the ddex:SoundRecording may be used instead. If the ddex:Release is an abstraction of a complete ddex:PhysicalProduct (such as a CD ddex:Album), the ddex:ICPN of the ddex:PhysicalProduct may be used instead. More than one of these identifiers may be provided.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReferenceTitle" type="ddexC:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:ReferenceTitle of the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseSummaryDetailsByTerritory" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ReleaseSummaryDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing summary details of ddex:Descriptors and other attributes of the ddex:Release which may vary according to ddex:Territory of ddex:Release. ddex:Territory of ddex:Release may be the world.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:License, ddex:Claim, ddex:RightShare or contract for the MusicalWork(s) used in the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:ReleaseSummary as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ReleaseSummaryDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing summary details of ddex:Descriptors and other attributes of a ddex:Release which may vary according to ddex:Territory of ddex:Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddexC:ReleaseSummaryDetailsByTerritory apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddexC:ReleaseSummaryDetailsByTerritory do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="DisplayArtistName" minOccurs="0" maxOccurs="unbounded" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the ddex:Name to be used by a ddex:DSP when presenting ddex:Artist details of the ddex:Release to a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName" minOccurs="0" maxOccurs="unbounded" type="ddexC:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the ddex:Name of the ddex:Label for the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:License, ddex:Claim, ddex:RightShare or contract for the MusicalWork(s) used in the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:ReleaseSummaryDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ReleaseType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReleaseType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ReleaseType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ReleaseType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:ReleaseType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="RemittanceAdvice">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an ddex:RemittanceAdvice.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:RemittanceAdvice as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ReportFormat">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReportFormat.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ReportFormat">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:ReportFormat. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:ReportFormat. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ReportType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ReportType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ReportType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:ReportType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:ReportType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ResourceContainedResourceReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ResourceContainedResourceReference for the case where one ddex:Resource contains another one.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ResourceContainedResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:Resource (specific to this ddex:Message). This is a ddex:LocalResourceAnchorReference starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="DurationUsed" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The total ddex:Duration of the ddex:Resource that has been used in a specified context (this may be less than the total ddex:Duration of the ddex:Resource) (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="StartPoint" minOccurs="0" type="xs:decimal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The start point of the preview given in seconds from the start of the referenced ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Purpose" minOccurs="0" type="ddexC:Purpose">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Purpose of the usage.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ResourceContainedResourceReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of one or more ddex:ResourceContainedResourceReferences. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ResourceContainedResourceReference" maxOccurs="unbounded"
            type="ddexC:ResourceContainedResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ResourceContainedResourceReference.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ResourceContributor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Name, ddex:Identifier and role(s) of a ddex:Contributor to a ddex:Resource.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" type="ddexC:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ddexC:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId" minOccurs="0" type="ddexC:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="ResourceContributorRole" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributorRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a role played by the ddex:Contributor.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="SequenceNumber" type="xs:integer">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The number indicating the order of the ddexC:ResourceContributor in a group of ResourceContributors that have contributed to a ddex:Resource. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ResourceContributorRole">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ResourceContributorRole. Note: This can be used in a ddex:DdexMessage in relation to any ddex:Work, ddex:Performance or ddex:Fixation any of which may form the whole or part of the ddex:Resource itself.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ResourceContributorRole">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ResourceContributorRole. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:ResourceContributorRole. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ResourceGroupResourceReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of ddex:ResourceGroupResourceReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ResourceGroupResourceReference" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:Resource (specific to this ddex:Message). This is a ddex:LocalResourceAnchorReference starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ResourceId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:ResourceIds.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISRC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISRC (International Standard ddex:Recording Code as defined in  ISO 3901) for the ddex:Resource. An ddex:ISRC comprises four parts: two characters, followed by three alphanumeric characters, then two digits and five digits. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISMN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISMN (International Standard Music Number defined in ISO 10957) for the ddex:Resource. An ddex:ISMN is a thirteen-digit number. Pre-2008 ddex:ISMNs, which had 10 characters and are now deprecated, are converted by replacing the initial letter ('M') with '979-0'.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISAN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISAN (International Standard Audiovisual Number as defined in ISO 15706) for the ddex:Resource. An ddex:ISAN comprises four blocks of four hexadecimal charaters followed by a check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VISAN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The V-ISAN (Version ddex:Identifier of a International Standard Audiovisual Number as defined in ISO 15706-2) for the ddex:Resource. A V-ISAN comprises four blocks of four hexadecimal charaters followed by a check character, followed by two further blocks of four hexadecimal characters, followed by a further check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISBN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISBN (International Standard Book Number defined in ISO 2108) for the ddex:Resource. An ddex:ISBN is a 13-digit number. Pre-2007, ddex:ISBNs, which had 10-digits and are now deprecated, are converted by adding the prefix '978' and re-calculating the check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISSN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISSN (International Standard Serial Number defined in ISO 3297) for the ddex:Resource. An ddex:ISSN comprises two groups of four digits, separated by a hyphen and a control digit.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SICI" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:SICI (Serial Item and Contribution ddex:Identifier defined in ANSI/NISO Z39.56-199)  for the ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CatalogNumber" minOccurs="0" type="ddexC:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CatalogNumber of the ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ResourceMusicalWorkReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:ResourceMusicalWorkReference.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="SequenceNumber" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number indicating the order of the ddex:MusicalWork in a group of ddex:MusicalWorks within a ddex:Medley, ddex:SoundRecording or other ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DurationUsed" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The total ddex:Duration of the ddex:MusicalWork that has been used in a specified context (this may be less than the total ddex:Duration of the ddex:MusicalWork) (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsFragment" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddex:MusicalWork is a ddex:Fragment (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceMusicalWorkReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:MusicalWork (specific to this ddex:Message). This is a ddex:LocalMusicalWorkAnchorReference starting with the letter W.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="W[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ResourceMusicalWorkReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of ddex:ResourceMusicalWorkReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ResourceMusicalWorkReference" maxOccurs="unbounded"
            type="ddexC:ResourceMusicalWorkReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:ResourceMusicalWorkReference for a ddex:MusicalWork (specific to this ddex:Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ResourceOmissionReason">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ResourceOmissionReason.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ResourceOmissionReason">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ResourceOmissionReason. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:ResourceOmissionReason. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="ResourceType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ResourceType. For example a ddex:SoundRecording of a ddex:Performance of a ddex:MusicalWork or an ddex:Image of an ddex:Artist.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:ResourceType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:ResourceType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:ResourceType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="RightShare">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:RightShare.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="RightShareId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers for the ddexC:RightShare.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightShareReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Identifier (specific to the ddex:Message) of the ddexC:RightShare within the ddex:Release which contains it. This is a ddex:LocalRightShareAnchor starting with the letter S.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="S[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="RightShareCreationReferenceList" minOccurs="0"
            type="ddexC:RightShareCreationReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of one or more ddex:Creations contained in the ddexC:RightShare.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddexC:RightShare applies (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddexC:RightShare does not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="RightsType" minOccurs="0" maxOccurs="unbounded" type="ddexC:RightsType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Type of ddex:Right covered by the ddexC:RightShare. One of the ddex:Elements RightsType and ddex:UseType must be present. The RightsType is defined according to the jurisdiction of the ddex:Territory indicated in the iso3166a2:TerritoryCode ddex:XmlAttribute.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UseType" minOccurs="0" maxOccurs="unbounded" type="ddexC:UseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a nature of a ddex:Service, or a ddex:Release, as used by a ddex:Consumer. One of the ddex:Elements RightsType and ddex:UseType must be present.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserInterfaceType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:UserInterfaceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a physical interface by which a ddex:Consumer uses a ddex:Service or ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DistributionChannelType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:DistributionChannelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a distribution channel used to disseminate a ddex:Service or ddex:Release to a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CarrierType" minOccurs="0" maxOccurs="unbounded" type="ddexC:CarrierType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Carrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CommercialModelType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:CommercialModelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the fundamental business model which applies (e.g. ddex:SubscriptionModel and ddex:PayAsYouGoModel). The ddex:CommercialModelType indicates how the ddex:Consumer pays for the ddex:Service or ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkRightsClaimType" minOccurs="0" maxOccurs="unbounded"
            type="ddex:MusicalWorkRightsClaimType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Type of the ddex:RightsClaim related to a ddex:MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsController" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:RightsController">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:RightsController of Rights in a ddex:Creation.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ValidityPeriod" type="ddexC:Period">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details about the ddex:Period of ddex:Time for which the ddexC:RightShare is valid.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="PercentageUnknown" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddex:RightSharePercentage is unknown (=True) or not (=False).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="PercentageRate" minOccurs="0" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The share of the licensed Rights owned by the ddex:RightsController. ddexC:RightShare information is given as a xs:decimal value (e.g. '0.125' represents 12.5%) or as a fraction (e.g. '1/8' represents 12.5%).</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="TariffReference" minOccurs="0" type="ddexC:TariffReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Reference to a ddex:TextDocument containing details of a ddex:Tariff (in the form of an ddex:Identifier, ddex:Name or ddex:Description) that is to be applied to the ddexC:RightShare.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LicenseStatus" minOccurs="0" type="ddex:LicenseStatus">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The legal status of a ddex:License for the ddexC:RightShare.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="HasFirstLicenseRefusal" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether a ddex:RightsController retains the right of refusal regarding the granting of the first licence for creating a ddex:SoundRecording of a Musical ddex:Work (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:RightShare as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="RightShareCreationReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of RightShareCreationReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="RightShareWorkReference" minOccurs="0" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:Work (specific to this ddex:Message) that is part of the ddex:RightShare. This is a ddex:LocalMusicalWorkAnchorReference starting with the letter W.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="W[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="RightShareResourceReference" minOccurs="0" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:Resource (specific to this ddex:Message) that is part of the ddex:RightShare. This is a ddex:LocalResourceAnchorReference starting with the letter A. The ddex:RightShare covers the ddex:Works used in the Resource(s).</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="RightShareReleaseReference" minOccurs="0" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:Release (specific to this ddex:Message) that is part of the ddex:RightShare. This is a ddex:LocalReleaseAnchorReference starting with the letter R. The ddex:RightShare covers the ddex:Works used in the Release(s).</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="R[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="RightsAgreementId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:License, ddex:Claim, ddex:RightShare or contract.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MWLI" minOccurs="0" maxOccurs="unbounded" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:MusicalWork ddex:License ddex:Identifier identifying a ddex:License. If the ddex:Composite is meant to describe a ddex:Claim, ddex:RightShare or contract, then the ddex:License relates to that ddex:Claim, ddex:RightShare or contract. A ddex:MWLI comprises four parts: one of the xs:strings 'M1' or 'M2' or 'M3' or 'M4', followed by five alphanumeric characters, ten alphanumeric characters and one alphanumeric check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:License, ddex:Claim, ddex:RightShare or contract.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="RightsController">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:RightsController. ddex:RightsControllers are typicallydescribed by ddex:Name, ddex:Identifier and role(s).</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" type="ddexC:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ddexC:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId" minOccurs="0" type="ddexC:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for the ddex:Party. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="RightsControllerRole" minOccurs="0" maxOccurs="unbounded"
            type="ddex:RightsControllerRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A role that describes the ddex:Party involved in the administration of ddex:Rights.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="RightShareUnknown" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether the ddex:RightSharePercentage is unknown (=True) or not (=False).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="RightSharePercentage" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The share of the licensed Rights owned by the ddexC:RightsController. ddex:RightShare information is given as a xs:decimal value (e.g. '0.125' represents 12.5%). If no information is given, 100% is assumed.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
      </xs:sequence>
      <xs:attribute name="SequenceNumber" type="xs:integer">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The number indicating the order of the ddexC:RightsController in a group of ddex:RightsControllers. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="RightsType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a RightsType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:RightsCoverage">
            <xs:attribute name="TerritoryCode" type="ddexC:TerritoryCode" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddexC:RightsType applies (represented by an ISO 3166-1 iso3166a2:TerritoryCode). The ddexC:RightsType is defined according to the jurisdiction of this ddex:Territory.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:RightsType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:RightsType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="RoyaltyAmount">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:RoyaltyAmount.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="CurrencyCode" type="ddexC:CurrencyCode" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Currency of the ddexC:RoyaltyAmount (represented by an ISO 4217 iso4217a:CurrencyCode). This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="RoyaltyCode">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:RoyaltyCode.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="Namespace" type="xs:string" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:RoyaltyRateType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="SalesReportingProxyReleaseId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SalesReportingProxyReleaseId.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseId" type="ddexC:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:ReleaseIds. If available, a ddex:GRid should always be used.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Reason" minOccurs="0" type="ddexC:Reason">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the textual ddex:Description of the reason for the ddex:Identifier being used as a proxy.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReasonType" type="ddexC:ReasonType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ReasonType.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="SamplingRate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:SamplingRate and a ddex:UnitOfMeasure.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="UnitOfMeasure" type="ddex:UnitOfFrequency">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:UnitOfMeasure of the ddexC:SamplingRate. This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="SheetMusicCodecType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SheetMusicCodecType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:SheetMusicCodecType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Identifier of the ddex:Version of the ddexC:SheetMusicCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:SheetMusicCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:SheetMusicCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="SheetMusicDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors, Dates and other attributes of a ddex:SheetMusic which may vary according to ddex:Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:SheetMusic details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:SheetMusic details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title" minOccurs="0" maxOccurs="unbounded" type="ddexC:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Title of the ddex:SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Contributor to the ddex:SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an indirect ddex:Contributor to the ddex:SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CLine for the ddex:SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ddexC:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing an ddex:Annotation which acknowledges record companies and/or other Parties giving permission for ddex:Artists or others featured in the ddex:SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:SheetMusic was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:SheetMusicDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SheetMusicId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:SheetMusic.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISMN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISMN (International Standard Music Number defined in ISO 10957) for the ddex:SheetMusic. An ddex:ISMN is a thirteen-digit number. Pre-2008 ddex:ISMNs, which had 10 characters and are now deprecated, are converted by replacing the initial letter ('M') with '979-0'.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SheetMusicType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SheetMusicType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:SheetMusicType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:SheetMusicType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:SheetMusicType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="SocietyAffiliation">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a society affiliation.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the affiliation details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the affiliation details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="MusicRightsSociety" type="ddexC:PartyDescriptor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MusicRightsSociety.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="SoftwareDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors, Dates and other attributes of a ddex:Software application which may vary according to ddex:Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:Software details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:Software details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="ResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Contributor to the ddex:Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an indirect ddex:Contributor to the ddex:Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PLine for the ddex:Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CLine for the ddex:Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ddexC:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing an ddex:Annotation which acknowledges record companies and/or other Parties giving permission for ddex:Artists or others featured in the ddex:Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:Software was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:SoftwareDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SoftwareId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:Software.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ProprietaryId" maxOccurs="unbounded" type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SoftwareType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SoftwareType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:SoftwareType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:SoftwareType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:SoftwareType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="SoundProcessorType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SoundProcessorType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:SoundProcessorType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Identifier of the ddex:Version of the ddexC:SoundProcessorType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:SoundProcessorType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:SoundProcessorType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="SoundRecordingCollectionReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SoundRecordingCollectionReference.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="SequenceNumber" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number indicating the order of the ddex:Collection in a group of ddex:Collections within a ddex:Medley, ddex:SoundRecording or other ddex:Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundRecordingCollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:Collection (specific to this ddex:Message). This is a ddex:LocalCollectionAnchorReference starting with the letter X. The referenced ddex:Collection has to be of ddex:CollectionType ddex:Series, ddex:Season or ddex:Episode.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="X[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="StartTime" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The start time of the ddex:Creation, measured from the start of the ddex:Resource from which the ddex:CueSheet is referenced (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:Duration of the use of the ddex:Creation that is referenced in the ddex:CueCreationReference (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="EndTime" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The end time of the ddex:Creation, measured from the start of the ddex:Resource from which the ddex:CueSheet is referenced (using the ISO 8601:2004 PT[[hhH]mmM]ssS format, where lower case characters indicate variables, upper case characters are part of the xs:string, e.g. one hour, two minutes and three seconds would be PT1H2M3S).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseResourceType" minOccurs="0" type="ddex:ReleaseResourceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Type of ddex:Collection in the context of a ddex:Video. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="SoundRecordingCollectionReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of ddex:SoundRecordingCollectionReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="NumberOfCollections" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of referenced ddexC:Collections (typically Chapters).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundRecordingCollectionReference" maxOccurs="unbounded"
            type="ddexC:SoundRecordingCollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:SoundRecordingCollectionReference for a ddex:Collection (specific to this ddex:Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="SoundRecordingDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors and other attributes of a ddex:SoundRecording which may vary according to ddex:Territory of release. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:SoundRecording details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:SoundRecording details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title" minOccurs="0" maxOccurs="unbounded" type="ddexC:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Title of the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist" minOccurs="0" maxOccurs="unbounded" type="ddexC:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:DisplayArtist for the ddex:SoundRecording. The ddex:DisplayArtist may be described through ddex:Name, ddex:Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Contributor to the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an indirect ddex:Contributor to the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:License, ddex:Claim, ddex:RightShare or contract for the MusicalWork(s) used in the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName" minOccurs="0" maxOccurs="unbounded" type="ddexC:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the ddex:Name of the ddex:Label under which the ddex:Release is to be marketed.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsController" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:RightsController">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:RightsController of Rights in the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RemasteredDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:SoundRecording was re-mastered (usually digitally).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:SoundRecording was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PLine for the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:SoundRecordingDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SoundRecordingId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:SoundRecordingIds.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISRC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISRC (International Standard ddex:Recording Code as defined in  ISO 3901) for the ddex:SoundRecording. An ddex:ISRC comprises four parts: two characters, followed by three alphanumeric characters, then two digits and five digits. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CatalogNumber" minOccurs="0" type="ddexC:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CatalogNumber of the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:SoundRecording (usually one per society involved in the messaging).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SoundRecordingType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SoundRecordingType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:SoundRecordingType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:SoundRecordingType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:SoundRecordingType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="StoreLocationDescriptor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:StoreLocationDescriptor.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:StoreLocationDescriptor as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="SubTitle">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SubTitle, including ddex:Titles of ddex:Versions used to differentiate different versions of the same ddex:Title, as required by the ddex:GRid and ddex:ISRC ddex:ReferenceDescriptiveMetadataSets.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:SubTitle as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="SupplyChainStatus">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SupplyChainStatus.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:SupplyChainStatus">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:SupplyChainStatus. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:SupplyChainStatus. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Synopsis">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Synopsis.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:Synopsis as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="TariffReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Reference to a ddex:TextDocument containing details of a ddex:Tariff.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:TariffReference (and the ddex:TariffSubReference if applicable) as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="TariffSubReference" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Reference to a ddex:TextDocument containing more specific details of a ddex:Tariff. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Tax">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Tax.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="CurrencyCode" type="ddexC:CurrencyCode" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Currency of the ddexC:Tax (represented by an ISO 4217 iso4217a:CurrencyCode). This is represented in an XML schema as an XML ddex:Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="TaxRate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:TaxRate.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Rate" type="xs:decimal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddexC:TaxRate as a percentage.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TaxType" maxOccurs="unbounded" type="ddexC:TaxType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of ddex:Tax.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TaxScope" maxOccurs="unbounded" type="ddexC:TaxScope">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:Type of ddex:Tax according to its scope.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="TaxScope">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:TaxScope.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:TaxScope">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:TaxScope. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:TaxScope. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="TaxType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:TaxType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:TaxType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:TaxType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:TaxType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="TechnicalInstantiation">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing technical details of a ddex:Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="DrmEnforcementType" minOccurs="0" type="ddex:DrmEnforcementType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Type of DRM enforcement.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VideoDefinitionType" minOccurs="0" type="ddex:VideoDefinitionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Type of resolution (or definition) in which a ddex:Video is provided.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CodingType" minOccurs="0" type="ddex:CodingType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Type of coding used to encode a ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="BitRate" minOccurs="0" type="ddexC:BitRate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the ddex:BitRate for the audio data and a ddex:UnitOfMeasure (the default is ddex:kbps).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="TextCodecType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:TextCodecType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:TextCodecType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Identifier of the ddex:Version of the ddexC:TextCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:TextCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:TextCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="TextDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors, Dates and other attributes of a ddex:Text which may vary according to ddex:Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:Text details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:Text details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="ResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Contributor to the ddex:Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an indirect ddex:Contributor to the ddex:Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CLine for the ddex:Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ddexC:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing an ddex:Annotation which acknowledges record companies and/or other Parties giving permission for ddex:Artists or others featured in the ddex:Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:Text was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:TextDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TextId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:Text.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISBN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISBN (International Standard Book Number defined in ISO 2108) for the ddex:Text. An ddex:ISBN is a 13-digit number. Pre-2007, ddex:ISBNs, which had 10-digits and are now deprecated, are converted by adding the prefix '978' and re-calculating the check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISSN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISSN (International Standard Serial Number defined in ISO 3297) identifying the ddex:Text. An ddex:ISSN comprises two groups of four digits, separated by a hyphen and a control digit.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SICI" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:SICI (Serial Item and Contribution ddex:Identifier defined in ANSI/NISO Z39.56-199)  for the ddex:Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:Text (usually one per society involved in the messaging).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TextType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:TextType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:TextType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:TextType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:TextType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Title">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Title.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TitleText" type="ddexC:TitleText">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the text of the ddexC:Title.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SubTitle" minOccurs="0" maxOccurs="unbounded" type="ddexC:TypedSubTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SubTitle of the ddexC:Title, including ddex:Titles of ddex:Versions used to differentiate different versions of the same ddex:Title, as required by the ddex:GRid and ddex:ISRC ddex:ReferenceDescriptiveMetadataSets.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:Title as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="TitleType" type="ddex:TitleType">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">A ddex:Type of the ddexC:Title which defines its origin or the function it fulfils in relation to a ddex:Creation. Note: A ddexC:Title may fulfil more than one role. Example: 'Help' may be both the ddex:OriginalTitle and the ddex:DisplayTitle for the well-known Beatles song. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TitleText">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:TitleText.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:TitleText as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="TotalRoyaltyAmount">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a total ddex:RoyaltyAmount.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseType" minOccurs="0" maxOccurs="unbounded" type="ddexC:ReleaseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:ReleaseType for which the ddex:RoyaltyAmount is calculated.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsType" minOccurs="0" maxOccurs="unbounded" type="ddexC:RightsType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the RightsType for which the ddex:RoyaltyAmount is calculated.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RoyaltyAmount" type="ddexC:RoyaltyAmount">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:RoyaltyAmount due.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="TypedSubTitle">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:SubTitle, including ddex:Titles of ddex:Versions used to differentiate different versions of the same ddex:Title, as required by the ddex:GRid and ddex:ISRC ddex:ReferenceDescriptiveMetadataSets.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddexC:SubTitle as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="SubTitleType" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Type of the ddexC:SubTitle which defines its origin or the function it fulfils. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Usage">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing ddex:Types and number of Usages of a ddex:Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="UseType" maxOccurs="unbounded" type="ddexC:UseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a nature of a ddex:Service, or a ddex:Release, as used by a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserInterfaceType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:UserInterfaceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a physical interface by which a ddex:Consumer is intended to use a ddex:Service or ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DistributionChannelType" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:DistributionChannelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a distribution channel intended to be used to disseminate a ddex:Service or ddex:Release to a ddex:Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CarrierType" minOccurs="0" maxOccurs="unbounded" type="ddexC:CarrierType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Carrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalInstantiation" minOccurs="0" type="ddexC:TechnicalInstantiation">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing technical details of the ddex:Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfUsages" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of times a ddex:Release can be used under the terms of the ddex:Deal.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="UseType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:UseType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:UseType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:UseType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:UseType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="UserDefinedResourceDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors, Dates and other attributes of a ddex:UserDefinedResource application which may vary according to ddex:Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:UserDefinedResource details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:UserDefinedResource details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="ResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Contributor to the ddex:UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an indirect ddex:Contributor to the ddex:UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserDefinedValue" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:UserDefinedValue">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:UserDefinedValue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PLine for the ddex:UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CLine for the ddex:UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:UserDefinedResource was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:UserDefinedResourceDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="UserDefinedResourceId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:UserDefinedResource.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ProprietaryId" maxOccurs="unbounded" type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="UserDefinedResourceType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:UserDefinedResourceType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:UserDefinedResourceType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="UserDefinedValue">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:UserDefinedValue.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:string">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:UserDefinedValue. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Description" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A textual ddex:Description of the ddex:Type or function of the ddexC:UserDefinedValue. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Language and script of the ddex:Description as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="UserInterfaceType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:UserInterfaceType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:UserInterfaceType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:UserInterfaceType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:UserInterfaceType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="VideoCodecType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:VideoCodecType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:VideoCodecType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Identifier of the ddex:Version of the ddexC:VideoCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:VideoCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:VideoCodecType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="VideoCueSheetReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a ddex:VideoCueSheetReference.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="VideoCueSheetReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:CueSheet (specific to this ddex:Message). This is a ddex:LocalCueSheetAnchorReference starting with the letter Q.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="Q[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="VideoCueSheetReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing a list of ddex:VideoCueSheetReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="VideoCueSheetReference" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Reference for a ddex:CueSheet (specific to this ddex:Message). This is a ddex:LocalCueSheetAnchorReference starting with the letter Q.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="Q[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="VideoDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Descriptors and other attributes of a ddex:Video which may vary according to ddex:Territory of release. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode" maxOccurs="unbounded" type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:SoundRecording details apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:ExcludedTerritory shall be present, but not both. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode" maxOccurs="unbounded"
               type="ddexC:TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:Territory to which the ddex:SoundRecording details do not apply (represented by an ISO 3166-1 iso3166a2:TerritoryCode). Either this ddex:Element or ddex:Territory shall be present, but not both.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title" minOccurs="0" maxOccurs="unbounded" type="ddexC:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Title of the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist" minOccurs="0" maxOccurs="unbounded" type="ddexC:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:DisplayArtist for the ddex:SoundRecording. The ddex:DisplayArtist may be described through ddex:Name, ddex:Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:Contributor to the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of an indirect ddex:Contributor to the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ddexC:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:License, ddex:Claim, ddex:RightShare or contract for the MusicalWork(s) used in the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName" minOccurs="0" maxOccurs="unbounded" type="ddexC:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the ddex:Name of the ddex:Label under which the ddex:Release is to be marketed.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsController" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:RightsController">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:RightsController of Rights in the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RemasteredDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:SoundRecording was re-mastered (usually digitally).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate" minOccurs="0" type="ddexC:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the Date and ddex:Place of the ddex:Event in which the ddex:SoundRecording was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PLine for the ddex:SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine" minOccurs="0" maxOccurs="unbounded" type="ddexC:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CLine for the ddex:Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:SoundRecordingDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="VideoId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:Identifiers of a ddex:Video.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISRC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISRC (International Standard ddex:Recording Code as defined in  ISO 3901) for the ddex:Video. An ddex:ISRC comprises four parts: two characters, followed by three alphanumeric characters, then two digits and five digits. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ISAN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ddex:ISAN (International Standard Audiovisual Number as defined in ISO 15706) for the ddex:Video. An ddex:ISAN comprises four blocks of four hexadecimal charaters followed by a check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VISAN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The V-ISAN (Version ddex:Identifier of a International Standard Audiovisual Number as defined in ISO 15706-2) for the ddex:Video. A V-ISAN comprises four blocks of four hexadecimal charaters followed by a check character, followed by two further blocks of four hexadecimal characters, followed by a further check character.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CatalogNumber" minOccurs="0" type="ddexC:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:CatalogNumber of the ddex:Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId" minOccurs="0" maxOccurs="unbounded"
            type="ddexC:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:ProprietaryIdentifier of the ddex:Video (usually one per society involved in the messaging).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Flag indicating whether this ddex:Identifier is old and has been replaced by a new one (=True) or not (=False). The ddex:Flag may only be set to True when the new ddex:Identifier is also provided. If the ddex:Flag is not set, this ddex:Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="VideoType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:VideoType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:VideoType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddexC:VideoType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddexC:VideoType. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="WebPage">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:WebPage.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="PartyId" minOccurs="0" maxOccurs="unbounded" type="ddexC:PartyId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of the ddex:PartyId for a ddex:Party owning the ddexC:WebPage. If no ddex:Namespace is given, the ddex:Identifier is a ddex:DdexPartyId (DPID). Note that DPIDs are not normally used to identify ddex:Artists, ddex:Producers or other ddex:Creators.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseId" minOccurs="0" maxOccurs="unbounded" type="ddexC:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of ddex:ReleaseIds. If available, a ddex:GRid should always be used.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PageName" minOccurs="0" type="ddexC:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing the ddex:Name of the ddex:WebPage.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="URL" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:URL of the ddex:WebPage.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserName" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">An ddex:Identifier of a computer user who is granted maintenance access to the ddex:WebPage.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Password" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Password needed to grant a user maintenance access to the ddex:WebPage in combination with the ddex:UserName.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="WorkList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of one or more ddex:Works.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MusicalWork" maxOccurs="unbounded" type="ddexC:MusicalWork">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:MusicalWork contained in a ddex:Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The ddex:Language and script for the ddex:Elements of the ddexC:WorkList as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. ddex:Language and Script are provided as lang[-scipt][-region][-variant].  This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="WsMessageStatus">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A ddex:Composite containing details of a ddex:WsMessageStatus.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ddex:WsMessageStatus">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The ddex:Namespace of the ddex:WsMessageStatus. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A ddex:UserDefined value of the ddex:WsMessageStatus. This is represented in an XML schema as an XML ddex:Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:simpleType name="CurrencyCode">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A code representing a ddex:Currency.</xs:documentation>
      </xs:annotation>
      <xs:union memberTypes="iso4217a:CurrencyCode ddex:DeprecatedCurrencyCode"/>
   </xs:simpleType>
   <xs:simpleType name="TerritoryCode">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A code representing a ddex:Territory. This includes ISO 3166-1 two-letter codes plus a code for ddex:Worldwide.</xs:documentation>
      </xs:annotation>
      <xs:union memberTypes="iso3166a2:TerritoryCode ddex:NonIsoTerritoryCode"/>
   </xs:simpleType>
</xs:schema>
