<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:ern="http://ddex.net/xml/ern/37D2"
           xmlns:avs="http://ddex.net/xml/avs/avs"
           targetNamespace="http://ddex.net/xml/ern/37D2"
           elementFormDefault="unqualified"
           attributeFormDefault="unqualified">
   <xs:import namespace="http://ddex.net/xml/avs/avs"
              schemaLocation="avs.xsd"/>
   <xs:annotation>
      <xs:documentation>© 2006-2013 Digital Data Exchange, LLC (DDEX)</xs:documentation>
   </xs:annotation>
   <xs:element name="NewReleaseMessage">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Message in the Release Notification Message Suite Standard, containing details of a new Release.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
         <xs:sequence>
            <xs:element name="MessageHeader" type="ern:MessageHeader">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The MessageHeader for the NewReleaseMessage.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="UpdateIndicator" minOccurs="0" type="avs:UpdateIndicator">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The indicator which distinguishes whether the Message contains original data or updates to previously sent data. This element is deprecated. DDEX advises that it may be removed at a future date and therefore recommends against using it.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="IsBackfill" minOccurs="0" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Flag indicating whether the NewReleaseMessage is sent as part of a backfill activity (as opposed to providing ongoing deliveries of frontline Releases) (=True) or not (=False). When this element is not present, then no information on whether it is part of a backfill activity or not is provided.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="CatalogTransfer" minOccurs="0" type="ern:CatalogTransfer">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a Price change.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="WorkList" minOccurs="0" type="ern:WorkList">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of one or more MusicalWorks, a Performance of which is contained in the Resources of the NewReleaseMessage.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="CueSheetList" minOccurs="0" type="ern:CueSheetList">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of one or more CueSheets contained in Releases for which data is provided in the NewReleaseMessage.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ResourceList" type="ern:ResourceList">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of one or more Resources.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="CollectionList" minOccurs="0" type="ern:CollectionList">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of one or more Collections contained in Releases for which data is provided in the NewReleaseMessage.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ReleaseList" type="ern:ReleaseList">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of one or more DDEX Releases contained in the NewReleaseMessage.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="DealList" minOccurs="0" type="ern:DealList">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of one or more Deals governing the Usage of the Releases in the Message.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:sequence>
         <xs:attribute name="MessageSchemaVersionId" type="xs:string" use="required">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier of the Version of the XML schema used for the Message. This is represented in an XML schema as an XML Attribute.</xs:documentation>
            </xs:annotation>
         </xs:attribute>
         <xs:attribute name="BusinessProfileVersionId" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier of the Version of the business profile used for the Message. This is represented in an XML schema as an XML Attribute.</xs:documentation>
            </xs:annotation>
         </xs:attribute>
         <xs:attribute name="ReleaseProfileVersionId" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier of the Version of the release profile used for the Message. This is represented in an XML schema as an XML Attribute.</xs:documentation>
            </xs:annotation>
         </xs:attribute>
         <xs:attribute name="LanguageAndScriptCode" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Language and script for the Elements of the NewReleaseMessage as defined in IETF RfC 4646. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
            </xs:annotation>
         </xs:attribute>
      </xs:complexType>
   </xs:element>
   <xs:element name="CatalogListMessage">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Message in the Release Notification Message Suite Standard, containing a list of Releases that form part of a catalog.</xs:documentation>
      </xs:annotation>
      <xs:complexType>
         <xs:sequence>
            <xs:element name="MessageHeader" type="ern:MessageHeader">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The MessageHeader for the CatalogListMessage.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="PublicationDate" type="xs:dateTime">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The DateTime at which the catalog will become available (the only allowed format is ISO 8601:2004: YYYY-MM-DDThh:mm:ssTZD).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="CatalogItem" maxOccurs="unbounded" type="ern:CatalogItem">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a Release which is an item of the catalog.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:sequence>
         <xs:attribute name="MessageSchemaVersionId" type="xs:string" use="required">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier of the Version of the XML schema used for the Message. This is represented in an XML schema as an XML Attribute.</xs:documentation>
            </xs:annotation>
         </xs:attribute>
         <xs:attribute name="BusinessProfileVersionId" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier of the Version of the business profile used for the Message. This is represented in an XML schema as an XML Attribute.</xs:documentation>
            </xs:annotation>
         </xs:attribute>
         <xs:attribute name="ReleaseProfileVersionId" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier of the Version of the release profile used for the Message. This is represented in an XML schema as an XML Attribute.</xs:documentation>
            </xs:annotation>
         </xs:attribute>
         <xs:attribute name="LanguageAndScriptCode" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Language and script for the Elements of the CatalogListMessage as defined in IETF RfC 4646. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
            </xs:annotation>
         </xs:attribute>
      </xs:complexType>
   </xs:element>
   <xs:complexType name="CatalogItem">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Release which is an item of a catalog.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TerritoryCode"
                     maxOccurs="unbounded"
                     type="ern:AllTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Territory for the Release. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseId" maxOccurs="unbounded" type="ern:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ReleaseIds. If available, a GRid has to be used. If the Release contains only one SoundRecording, the ISRC of the SoundRecording may be used instead. If the Release is an abstraction of a complete PhysicalProduct (such as a CD Album), the ICPN of the PhysicalProduct may be used instead.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Title" type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtistName" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Release to a Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ContributorName" maxOccurs="unbounded" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to the catalog, i.e. to at least one of the included Releases.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayTitle" type="ern:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a DisplayTitle of the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName" maxOccurs="unbounded" type="ern:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name of the Label for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Genre to which the Release belongs.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PLine for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseDate" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the 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:complexType>
   <xs:complexType name="CatalogReleaseReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a list of CatalogReleaseReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CatalogReleaseReference" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a Release (specific to this Message) that is part of the catalog. This is a 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="CatalogTransfer">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a CatalogTransfer.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CatalogTransferCompleted" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Flag indicating whether the CatalogTransfer has been made (=True) or still needs to be made (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="EffectiveTransferDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the catalog is or was transferred.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CatalogReleaseReferenceList"
                     type="ern:CatalogReleaseReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more Releases contained in the catalog that is or was transferred.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:AllTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the CatalogTransfer applies. Either this Element or ExcludedTerritory must be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:AllTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the CatalogTransfer does not apply. Either this Element or Territory must be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="TransferringFrom" type="ern:PartyDescriptor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the old RightsController.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TransferringTo" type="ern:PartyDescriptor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the new RightsController.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Collection">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Collection. Collections referenced from Video Resources are of CollectionType VideoChapter . Collections referenced from a Release composite are of CollectionType Series, Season or Episode.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CollectionId" maxOccurs="unbounded" type="ern:CollectionId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an Identifier of the Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CollectionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the Collection within the Release which contains it. This is a 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="EquivalentReleaseReference" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a Release (specific to this Message) that is represented by the Collection. This is a 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:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SequenceNumber" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number indicating the order of the Collection within all Collections at this level. The default value is 1, and the value must be incremented by 1 for each Collection occurring at a particular level.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Contributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details a Contributor to the Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Character"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Character">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Character in the Collection. A Character may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionCollectionReferenceList"
                     minOccurs="0"
                     type="ern:CollectionCollectionReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a list of CollectionCollectionReferences for a Collection (specific to this Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsComplete" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Collection is complete (=True) or not (=False). Only one of the Elements IsComplete here and in the CollectionDetailsByTerritory is valid for a given Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The sum of the Durations of all Resources contained in the Collection (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="DurationOfMusicalContent" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The 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="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Collection was created.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalReleaseDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the 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="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The orignal Language of the Collection (represented by an ISO 639-2 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionDetailsByTerritory"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CollectionDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of the Collection which may vary according to Territory of release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionResourceReferenceList"
                     minOccurs="0"
                     type="ern:CollectionResourceReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a list of CollectionResourceReferences for a Resource (specific to this Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionWorkReferenceList"
                     minOccurs="0"
                     type="ern:CollectionWorkReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a list of CollectionWorkReferences for a Work (specific to this Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RepresentativeImageReference" minOccurs="0">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for an Image (specific to this Message). This is a 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="PLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PLine for the Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the Collection as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="CollectionDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of a Collection which may vary according to Territory of release. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the Collection details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the Collection details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Contributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to the Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsComplete" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Collection is complete (=True) or not (=False). Only one of the Elements IsComplete here and in the Collection is valid for a given Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Character"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Character">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Character in the Collection. A Character may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CollectionList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of one or more Collections.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Collection" maxOccurs="unbounded" type="ern:Collection">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Collection contained in a Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the CollectionList as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="CollectionResourceReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a CollectionResourceReference.</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 Resources in a group of Resources.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a Resource (specific to this Message). This is a 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="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the use of the Resource that is referenced in the CollectionResourceReference (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="CollectionResourceReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a list of CollectionResourceReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CollectionResourceReference"
                     maxOccurs="unbounded"
                     type="ern:CollectionResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a CollectionResourceReference for a Collection (specific to this Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Cue">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Cue.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CueUseType" minOccurs="0" type="ern:CueUseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a UseType of the 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="ern:CueThemeType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ThemeType for the Creation referenced in the Cue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CueVocalType" minOccurs="0" type="ern:CueVocalType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a VocalType for the Creation referenced in the Cue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsDance" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Flag indicating whether a Creation contains dancing (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CueVisualPerceptionType"
                     minOccurs="0"
                     type="ern:CueVisualPerceptionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a VisualPerceptionType for the Creation referenced in the Cue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CueOrigin" minOccurs="0" type="ern:CueOrigin">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a CueOrigin for the 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="ern:CueCreationReference">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a CueCreationReference for a Creation (specific to this Message).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="ReferencedCreationType" minOccurs="0" type="avs:CreationType">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Type of the Creation referenced in the Cue.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="ReferencedCreationId" minOccurs="0" type="ern:CreationId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of a CreationId.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="ReferencedCreationTitle"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:Title">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Creation referenced in the Cue.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="ReferencedCreationContributor"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:DetailedResourceContributor">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor of the Creation referenced in the Cue.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="ReferencedIndirectCreationContributor"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:MusicalWorkContributor">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of an indirect Contributor of the Creation referenced in the Cue.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="ReferencedCreationCharacter"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:Character">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of a Character in the Creation referenced in the Cue. A Character may be described through Name, Identifier and Roles.</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 Flag indicating whether whether the Creation referenced in the Cue contains musical content such as a SoundRecording or a 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 Creation, measured from the start of the Resource from which the 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 Duration of the use of the Creation that is referenced in the 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 Creation, measured from the start of the Resource from which the 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="PLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PLine for the Cue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the Cue.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CueSheet">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a CueSheet.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CueSheetId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a CueSheetId of the CueSheet.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CueSheetReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the CueSheet within the Release which contains it. This is a 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="ern:CueSheetType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of the CueSheet.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Cue" maxOccurs="unbounded" type="ern:Cue">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Cue.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CueSheetList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of one or more CueSheets.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CueSheet" maxOccurs="unbounded" type="ern:CueSheet">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a CueSheet contained in a Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Deal">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details (in full or in summary) of a Deal made between a DSP (as Licensee) and a Licensor of Works or Releases. When any new DealTerms are added or removed from an existing Deal (different UseTypes, Prices, Territories, DistributionChannels) then a new Deal is created, and (if appropriate) the ValidityPeriod of the existing Deal should be terminated. The only changes which should be made to the DealTerms of an existing Deal are corrections required because of an earlier error or omission, or the addition of an EndDate to the Deal's ValidityPeriod.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="DealReference"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DealReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Reference to a TextDocument containing details of the Deal (in the form of an Identifier, Name or Description).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DealTerms" minOccurs="0" type="ern:DealTerms">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the terms of the Deal.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceUsage" minOccurs="0" type="ern:ResourceUsage">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more Usages that govern a Resource in the Deal where the Usage of the Resource differs from the Usage of the other Resources in the same Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DealTechnicalResourceDetailsReferenceList"
                     minOccurs="0"
                     type="ern:DealTechnicalResourceDetailsReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a list of DealTechnicalResourceDetailsReferences for the Deal.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DistributionChannelPage"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:WebPage">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a WebPage for the DistributionChannel.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the Deal as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="DealList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of one or more Deals.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseDeal"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ReleaseDeal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more Deals pertaining to one or more Releases.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the DealList as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="DealTechnicalResourceDetailsReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a list of DealTechnicalResourceDetailsReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="DealTechnicalResourceDetailsReference" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a Composite specifying technical details of a Resource (specific to this Message). This is a LocalTechnicalResourceDetailsAnchorReference starting with the letter T.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:IDREF">
                  <xs:pattern value="T[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="DealTerms">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of the terms of a Deal.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CommercialModelType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CommercialModelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the fundamental business model which applies to the Deal (e.g. SubscriptionModel and PayAsYouGoModel). The CommercialModelType indicates how the Consumer pays for the Service or Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="Usage" maxOccurs="unbounded" type="ern:Usage">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing the Types and number of Usages applicable to a Release to which the Deal applies.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="AllDealsCancelled" minOccurs="0" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether all Deals are cancelled for the given Territories (=True) or not (=False). This Flag can be used in conjunction with a StartDate of a ValidityPeriod to indicate the point in time from which all Deals are cancelled. This element is deprecated. DDEX advises that it may be removed at a future date and therefore recommends against using it.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="TakeDown" minOccurs="0" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether all Releases referred to are to be taken down by the MessageRecipient. This includes that all Deals referred to in a specific Composite are cancelled and no information about the Releases should be displayed to the end user on the DSP's website (=True) or not (=False). This Flag can be used in conjunction with a StartDate of a ValidityPeriod to indicate the point in time from which all Deals are cancelled.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory in which the Deal applies. Either this Element or ExcludedTerritory must be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory in which the Deal does not apply. Either this Element or Territory must be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:choice minOccurs="0">
            <xs:element name="DistributionChannel" maxOccurs="unbounded" type="ern:DSP">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the DSP through whose DistributionChannel the sales are permitted. If none are provided no limitations on the DistributionChannels are given.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedDistributionChannel"
                        maxOccurs="unbounded"
                        type="ern:DSP">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of excluded DSP. This is used in an aggregator model where all agreed partners of the aggregators may use a ReleaseDeal, except those that are listed herein.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="PriceInformation"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:PriceInformation">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Price. Note that this Price applies to all UseTypes referenced in this Composite.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="IsPromotional" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether a special Deal is made between the Licensor and the Licensee (=True) or not (=False) regarding the royalties or payments due to be paid for Releases distributed under this Deal.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="PromotionalCode" type="ern:PromotionalCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a PromotionalCode.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="ValidityPeriod" maxOccurs="unbounded" type="ern:Period">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details about a Period of Time during which the Deal is valid. No StartDate in this Composite means that the Deal is valid as per contractual relationship between MessageSender and MessageRecipient. No EndDate in this Composite means that the Deal is valid until further notice.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ConsumerRentalPeriod"
                     minOccurs="0"
                     type="ern:ConsumerRentalPeriod">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Period the DSP may rent something to a Customer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PreOrderReleaseDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the related Release is made available for pre-ordering.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:sequence>
               <xs:element name="ReleaseDisplayStartDate" type="xs:date">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Date on which the Release is made first available for display. If other Track list, cover art and clip preview dates are not provided, then this date covers them as well (assuming clips are available). If no ReleaseDisplayStartDate is provided, the StartDate for the Deal is used instead. The ReleaseDisplayStartDate may not be later than the StartDate for the Deal. If the MessageRecipient is not able to cater for such granular display policies, the MessageRecipient may be forced to not display any Release information until a much later date.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="TrackListingPreviewStartDate" type="xs:date">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Date on which the Track list is made first available for display (it overrides the generic ReleaseDisplayStartDate if supplied). If no TrackListingPreviewStartDate is provided, the StartDate for the Deal is used instead. The TrackListingPreviewStartDate may not be later than the StartDate for the Deal.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="CoverArtPreviewStartDate" type="xs:date">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Date on which the cover art is made first available for display (it overrides the generic ReleaseDisplayStartDate if supplied). If no CoverArtPreviewStartDate is provided, the StartDate for the Deal is used instead. The CoverArtPreviewStartDate may not be later than the StartDate for the Deal.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="ClipPreviewStartDate" type="xs:date">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Date on which an audio or video clip is made first available for display (it overrides the generic ReleaseDisplayStartDate if supplied). If no ClipPreviewStartDate is provided, the StartDate for the Deal is used instead. The ClipPreviewStartDate may not be later than the StartDate for the Deal.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
            <xs:element name="PreOrderPreviewDate" type="ern:EventDate">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the pre-ordered Release is made first available for previewing (it overrides the generic ReleaseDisplayStartDate if supplied). If no PreOrderPreviewDate is provided, the StartDate for the Deal is used instead. The PreOrderPreviewDate may not be later than the StartDate for the Deal. This element has been deprecated and may be deleted in a future version of this message.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="IsExclusive" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Deal is exclusive (=True) or not (=False) to the MessageRecipient with respect to the relevant Territory(ies), Time(s) and Release(s). For other Territory(ies), or Time(s), other DSPs might be able to sell the Release(s). The exclusivity is in accordance with the agreement between the MessageSender and MessageRecipient.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RelatedReleaseOfferSet"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:RelatedReleaseOfferSet">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more offers related to the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PhysicalReturns" minOccurs="0" type="ern:PhysicalReturns">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of physical returns.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfProductsPerCarton" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A number of Products per carton. This is the smallest number of Products that can be ordered.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsClaimPolicy"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:RightsClaimPolicy">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a rights claim policy.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="WebPolicy"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:WebPolicy">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of UserGeneratedContent permissions.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the DealTerms as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="Fingerprint">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Fingerprint.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FingerprintAlgorithmType" type="ern:FingerprintAlgorithmType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of FingerprintAlgorithm governing the Fingerprint.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FingerprintAlgorithmVersion" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier of the 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:element name="FingerprintDataType" minOccurs="0" type="avs:BinaryDataType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The datatype of the Fingerprint.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Image">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an Image. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ImageType" minOccurs="0" type="ern:ImageType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsArtistRelated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Image is related to an Artist (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ImageId" maxOccurs="unbounded" type="ern:ImageId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the Image within the Release which contains it. This is a LocalResourceAnchor starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CreationDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Image was created.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ImageDetailsByTerritory"
                     maxOccurs="unbounded"
                     type="ern:ImageDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Image which may vary according to 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 Flag indicating whether the Image Element was updated (=True) or not (=False). The Flag may only be used when the UpdateIndicator is set to UpdateMessage. When this Boolean Flag is set to true, the MessageRecipient is expected to replace any previously provided Image 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 Language and script for the Elements of the Image as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ImageDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors, Dates and other attributes of an Image which may vary according to Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the Image details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the Image details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an indirect Contributor to the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Resource to a Consumer. A Resource-level DisplayArtistName shall only be provided if it differs from the DisplayArtistName for a Release that contains the Resource and is communicated in the same XML message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Description" minOccurs="0" type="ern:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Description of the subject of the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ern:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing an Annotation which acknowledges record companies and/or other Parties giving permission for Artists or others featured on the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate"
                     minOccurs="0"
                     type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Image was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Keywords"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Keywords">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Description of the Image containing Keywords.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Synopsis" minOccurs="0" type="ern:Synopsis">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Synopsis of the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Genre to which the Image belongs.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ParentalWarningType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ParentalWarningType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the classification of the Image according to advice which it carries about the level of explicitness or offensiveness of its content.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalImageDetails"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TechnicalImageDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing technical details of the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the ImageDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MIDI">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a MIDI.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MidiType" minOccurs="0" type="ern:MidiType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsArtistRelated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is related to an Artist (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MidiId" maxOccurs="unbounded" type="ern:MidiId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of the Midi.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectMidiId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkId of a MusicalWork used in the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the MIDI within the Release which contains it. This is a LocalResourceAnchor starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="ReferenceTitle" type="ern:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the ReferenceTitle of the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="InstrumentationDescription"
                     minOccurs="0"
                     type="ern:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Description of the Type of instrumentation of the MusicalWork(s) in the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsMedley" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is a Medley (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsPotpourri" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is a Potpourri (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsInstrumental" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is instrumental (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsBackground" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is used as background to other audio or audiovisual material (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsHiddenResource" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is hidden in some way from the Consumer (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsBonusResource" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is additional to those on the original Release of which this is a Version (=True) or not (=False). This element is deprecated. DDEX advises that it may be removed at a future date and therefore recommends against using it. The IsBonusResource element in ResourceGroupContentItem should be used instead.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsComputerGenerated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is generated by a computer (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NoSilenceBefore" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is preceded by a period of silence (=False) or not (=True). </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NoSilenceAfter" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is followed by a period of silence (=False) or not (=True). </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PerformerInformationRequired" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Flag indicating whether performer information is required (=True) or not (=False) when communicating details of the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LanguageOfPerformance"
                     minOccurs="0"
                     type="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Language of the Performance recorded in the MIDI (represented by an ISO 639-2 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the MIDI (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="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceMusicalWorkReferenceList"
                     minOccurs="0"
                     type="ern:ResourceMusicalWorkReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more MusicalWorks contained in the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContainedResourceReferenceList"
                     minOccurs="0"
                     type="ern:ResourceContainedResourceReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ResourceContainedResourceReferences referring to a Resource that is contained in the current MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CreationDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the MIDI was created.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MasteredDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the MIDI was originally mastered (in either analogue or digital form).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MidiDetailsByTerritory"
                     maxOccurs="unbounded"
                     type="ern:MidiDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of the MIDI which may vary according to 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 Flag indicating whether the MIDI Element was updated (=True) or not (=False). The Flag may only be used when the UpdateIndicator is set to UpdateMessage. When this Boolean Flag is set to true, the MessageRecipient is expected to replace any previously provided MIDI 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 Language and script for the Elements of the MIDI as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MidiDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of a MIDI which may vary according to Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the MIDI details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the MIDI details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the DisplayArtist for the MIDI. The DisplayArtist may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an indirect Contributor to the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Resource to a Consumer. A Resource-level DisplayArtistName shall only be provided if it differs from the DisplayArtistName for a Release that contains the Resource and is communicated in the same XML message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name of the Label under which the Release is to be marketed.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsController"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TypedRightsController">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of RightsController of Rights in the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RemasteredDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the MIDI was re-mastered (usually digitally).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate"
                     minOccurs="0"
                     type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the 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="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ern:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing an Annotation which acknowledges record companies and/or other Parties giving permission for guests Artists or others featured on the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SequenceNumber" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number indicating the order of the MIDI in a group of MIDIs in a Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="HostSoundCarrier"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:HostSoundCarrier">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a HostSoundCarrier on which the MIDI appears (e.g., the CD on which it was originally released). This Composite exists in the Release Notification Message Suite Standard, to support the identification and matching of MIDI information.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MarketingComment" minOccurs="0" type="ern:Comment">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Comment about the promotion and marketing of the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Genre to which the MIDI belongs.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ParentalWarningType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ParentalWarningType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the classification of the MIDI according to advice which it carries about the level of explicitness or offensiveness of its content.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Keywords"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Keywords">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Description of the MIDI containing Keywords.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Synopsis" minOccurs="0" type="ern:Synopsis">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Synopsis of the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalMidiDetails"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TechnicalMidiDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing technical details of the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the MidiDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="PhysicalReturns">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of physical returns.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="PhysicalReturnsAllowed" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether physical returns are allowed (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LatestDateForPhysicalReturns" minOccurs="0" type="xs:date">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Date which is the latest one for physical returns (in ISO 8601:2004 format: YYYY-MM-DD).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="PreviewDetails">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a preview.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="PartType" minOccurs="0" type="ern:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Description of the Type of Part that the preview relates to, e.g. chorus or intro.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TopLeftCorner" minOccurs="0" type="xs:decimal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The position of the preview measured in Pixels or millimetres from the top left corner of the Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="BottomRightCorner" minOccurs="0" type="xs:decimal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The position of the preview measured in Pixels or millimetres  from the bottom right corner of the Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ExpressionType" type="avs:ExpressionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of expression indicating how this should be perceived, e.g. as instruction (meaning that this has to be done to create the preview) or as information (meaning that this has been done to craete the preview).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="PriceInformation">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Price.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Description" minOccurs="0" type="ern:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Description of the differences between multiple PriceInformation Composites.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PriceRangeType" minOccurs="0" type="ern:PriceRangeType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Type of Price according to its value range. Typical examples include 'budget' and 'front line'. This is an informative element which is not meant to be used to send instructions on the Price to be used by the DSP.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PriceType" minOccurs="0" type="ern:PriceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing further details of the Price, including a Price code that informs the DSP of the Price the Release should be offered at, often in combination with a rate card. This element should not be combined with WholesalePricePerUnit or BulkOrderWholesalePricePerUnit.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="WholesalePricePerUnit" minOccurs="0" type="ern:Price">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a wholesale Price for a single unit of Usage, which informs the informs the DSP of the Price the Release should be offered at. Note that this Price applies to all UseTypes referenced in a DealTerm Composite. This element should not be combined with PriceType.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="BulkOrderWholesalePricePerUnit"
                     minOccurs="0"
                     type="ern:Price">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a wholesale Price for a single unit, which informs the informs the DSP of the Price the Release should be offered at. Note that the size of a bulk order is defined in the contract between MessageSender and the MessageRecipient. This element should not be combined with PriceType.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SuggestedRetailPrice" minOccurs="0" type="ern:Price">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a suggested retail Price.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="PriceType" type="avs:PriceInformationType">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">A Type of the Price. This is represented in an XML schema as an XML Attribute. If no value is provided, a StandardRetailPrice is assumed.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="RelatedReleaseOfferSet">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of one or more offers related to one or more Releases.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="ReleaseId" maxOccurs="unbounded" type="ern:ReleaseId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of ReleaseIds of the Release(s) for which the offer(s) are available.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ReleaseDescription" type="ern:Description">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a Description of the Release(s) for which the offer(s) are available.This Element is designed to be used to describe entire collections or repertoires, and is not to be used to list individual Releases by xs:ID or Title.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Deal" minOccurs="0" maxOccurs="unbounded" type="ern:Deal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Deal that is available as an offer related to the Release(s). If no Deal is provided, the parent Release and the Releases listed in the RelatedReleaseOfferSet are bundled and offered under the ReleaseOffer associated with the parent Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the RelatedReleaseOfferSet as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="Release">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a DDEX Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseId" maxOccurs="unbounded" type="ern:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ReleaseIds. If available, a GRid has to be used. If the Release contains only one SoundRecording, the ISRC of the SoundRecording may be used instead. If the Release is an abstraction of a complete PhysicalProduct (such as a CD Album), the ICPN of the PhysicalProduct may be used instead.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseReference" minOccurs="0" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the Release. Used to link the Release to one or more Deal(s). This is a LocalReleaseAnchor starting with the letter R.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="R[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="ExternalResourceLink"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ExternalResourceLink">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of promotional or other material related to the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SalesReportingProxyReleaseId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:SalesReportingProxyReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the A Composite containing details of the SalesReportingProxyReleaseId.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReferenceTitle" type="ern:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the ReferenceTitle of the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="ReleaseResourceReferenceList"
                        type="ern:ReleaseResourceReferenceList">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of one or more Resources contained in the Release.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ResourceOmissionReason" type="ern:ResourceOmissionReason">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a ResourceOmissionReason.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="ReleaseCollectionReferenceList"
                     minOccurs="0"
                     type="ern:ReleaseCollectionReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more Collections contained in the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ReleaseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the form in which a ReleaseCreator anticipates offering the Release to Consumers. This may be overridden by the ReleaseType for specific Territories as specified in the ReleaseDetailsByTerritory Composite.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseDetailsByTerritory"
                     maxOccurs="unbounded"
                     type="ern:ReleaseDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of the Release which may vary according to Territory of release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LanguageOfPerformance"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The predominant original Language of the Performance recorded in the Resources (represented by an ISO 639-2 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LanguageOfDubbing"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The predominant Language of dubbing used in the  Resources (represented by an ISO 639-2 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SubTitleLanguage"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The predominant Language of SubTitles in the  Resources (represented by an ISO 639-2 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The sum of the Durations of all Resources contained in the Release (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="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PLine for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ArtistProfilePage"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:WebPage">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a WebPage for the Artist.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="GlobalReleaseDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date of the Event in which the Release was or will be first made globally available for Usage in its current form, whether for physical or electronic/online distribution (in ISO 8601:2004 format: YYYY-MM-DD).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="GlobalOriginalReleaseDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date of the Event in which the collection of tracks for the Release (e.g. the equivalent physical album on vinyl) was or will be first made globally 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 Language and script for the Elements of the Release as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="IsMainRelease" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether the Release is a main one as defined in the relevant Profile Standard (=True) or not (=False). This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ReleaseDeal">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of one or more Deals pertaining to one or more Releases.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="DealReleaseReference" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of a Release in the Deal. This is a 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:element name="Deal" maxOccurs="unbounded" type="ern:Deal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Deal governing the Usage of all Releases identified in the ReleaseDeal Composite.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="EffectiveDate" minOccurs="0" type="xs:date">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Date at which the MessageRecipient is expected to cancel all Deals for the Release and replace them with the Deals provided within the current Message. The EffectiveDate is typically the date on which the NewReleaseMessage is being sent.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the ReleaseDeal as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ReleaseDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of a Release which may vary according to Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the ReleaseSummaryDetailsByTerritory apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the ReleaseSummaryDetailsByTerritory do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Release to a Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name of the Label for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the DisplayArtist for the Release. The DisplayArtist may be described through Name, 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 Flag indicating whether the Release is a multiartist compilation (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AdministratingRecordCompany"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:AdministratingRecordCompany">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the AdministratingRecordCompany for the Release. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ReleaseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the form in which a ReleaseCreator anticipates offering the Release to Consumers. This overrides the ReleaseType specified globally for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RelatedRelease"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:RelatedRelease">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Release (or a PhysicalProduct or a DigitalProduct derived from such a Release) which is related to this Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ParentalWarningType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ParentalWarningType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the classification of the Release according to advice which it carries about the level of explicitness or offensiveness of its content.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AvRating"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:AvRating">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a rating for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MarketingComment" minOccurs="0" type="ern:Comment">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Comment about the promotion and marketing of the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceGroup"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ResourceGroup">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a group of some or all of the Resources in the Release. ResourceGroups are used to signal groupings or sequences of Resources within a Release. Examples include individual carriers in a multi-carrier Release or classical Work groupings as well as the default order of Resources within a Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Genre to which the Release belongs.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PLine for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Release was or will be first made available for Usage in its current form, whether for physical or electronic/online distribution (in ISO 8601:2004 format: YYYY-MM-DD).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalReleaseDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the collection of tracks for the Release (e.g. the equivalent physical album on vinyl) 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="OriginalDigitalReleaseDate"
                     minOccurs="0"
                     type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Release was or will be first made available in electronic/online format for Usage (in ISO 8601:2004 format: YYYY-MM-DD).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="FileAvailabilityDescription"
                        maxOccurs="unbounded"
                        type="ern:Description">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a Description providing details of how a DSP can obtain any related Release File.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="File" maxOccurs="unbounded" type="ern:File">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a related Release File that a DSP can obtain.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Keywords"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Keywords">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Description of the Release containing Keywords.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Synopsis" minOccurs="0" type="ern:Synopsis">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Synopsis of the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Character"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Character">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Character in the Release. A Character may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfUnitsPerPhysicalRelease"
                     minOccurs="0"
                     type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A number of units (typically a CD or a DVD) contained in a physical Release. This Element is for boxed sets.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayConductor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a DisplayConductor for the Release. A DisplayConductor may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the ReleaseSummaryDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ReleaseList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of one or more Releases.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Release"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Release">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Language and script for the Elements of the ReleaseList as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ResourceGroup">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ResourceGroup. ResourceGroups are used to signal groupings or sequences of Resources within a Release. Examples include individual carriers in a multi-carrier Release or classical Work groupings as well as the default order of Resources within a Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the ResourceGroup. Typically this will apply to 'sub' ResourceGroups within a hierarchy, e.g., different Albums in a Set.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SequenceNumber" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number indicating the order of the ResourceGroup within all ResourceGroups at this level. The default value is 1, and the value must be incremented by 1 for each ResourceGroup occurring at a particular level.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the DisplayArtist for the ResourceGroup. The DisplayArtist may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayConductor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a DisplayConductor for the ResourceGroup. A DisplayConductor may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayComposer"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a DisplayComposer for the ResourceGroup. A DisplayComposer may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to this ResourceGroup. This includes roles such as the compiler of the ResourceGroup, and may summarize details of Contributors to individual SoundRecordings or other content.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an indirect Contributor to this ResourceGroup.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CarrierType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CarrierType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Carrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceGroup"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ResourceGroup">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A ResourceGroup contained within this ResourceGroup. ResourceGroups are used to signal groupings or sequences of Resources within a Release. Examples include individual carriers in a multi-carrier Release or classical Work groupings as well as the default order of Resources within a Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="ResourceGroupContentItem"
                        minOccurs="0"
                        maxOccurs="unbounded"
                        type="ern:ResourceGroupContentItem">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a Resource contained in the ResourceGroup.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ResourceGroupResourceReferenceList"
                        minOccurs="0"
                        type="ern:ResourceGroupResourceReferenceList">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a Resource contained in the ResourceGroup.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:choice minOccurs="0">
            <xs:element name="ResourceGroupReleaseReference">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of a Release which has the same content as the ResourceGroup. This is a 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:element name="ReleaseId" type="ern:ReleaseId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of ReleaseIds of a Release which has the same content as the ResourceGroup. If available, a GRid has to be used. If the Release contains only one SoundRecording, the ISRC of the SoundRecording may be used instead. If the Release is an abstraction of a complete PhysicalProduct (such as a CD Album), the ICPN of the PhysicalProduct may be used instead.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the ResourceGroup as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ResourceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of one or more Resources. ResourceList provides a simple means of aggregating Resources without any explicit sequencing or grouping: if that is needed it is provided by the ResourceGroup Composite. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="SoundRecording"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:SoundRecording">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MIDI" minOccurs="0" maxOccurs="unbounded" type="ern:MIDI">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Video"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Video">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Image"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Image">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Text" minOccurs="0" maxOccurs="unbounded" type="ern:Text">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SheetMusic"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:SheetMusic">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Software"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Software">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an item of Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserDefinedResource"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:UserDefinedResource">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the ResourceList as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ResourceUsage">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of one or more Usages that govern a Resource.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="DealResourceReference" minOccurs="0" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a Resource (specific to this Message). This is a 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="Usage" maxOccurs="unbounded" type="ern:Usage">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Types and number of Usages applicable to the Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="SheetMusic">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a SheetMusic.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="SheetMusicType" minOccurs="0" type="ern:SheetMusicType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsArtistRelated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SheetMusic is related to an Artist (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SheetMusicId" maxOccurs="unbounded" type="ern:SheetMusicId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectSheetMusicId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkId of a MusicalWork used in the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the SheetMusic within the Release which contains it. This is a LocalResourceAnchor starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="LanguageOfLyrics" minOccurs="0" type="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Language of the lyrics of the SheetMusic (represented by an ISO 639-2 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) related to the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceMusicalWorkReferenceList"
                     minOccurs="0"
                     type="ern:ResourceMusicalWorkReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more MusicalWorks contained in the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContainedResourceReferenceList"
                     minOccurs="0"
                     type="ern:ResourceContainedResourceReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ResourceContainedResourceReferences referring to a Resource that is contained in the current SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReferenceTitle" type="ern:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the ReferenceTitle of the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CreationDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the SheetMusic was created.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SheetMusicDetailsByTerritory"
                     maxOccurs="unbounded"
                     type="ern:SheetMusicDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the SheetMusic which may vary according to 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 Flag indicating whether the SheetMusic Element was updated (=True) or not (=False). The Flag may only be used when the UpdateIndicator is set to UpdateMessage. When this Boolean Flag is set to true, the MessageRecipient is expected to replace any previously provided SheetMusic 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 Language and script for the Elements of the SheetMusic as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SheetMusicDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors, Dates and other attributes of a SheetMusic which may vary according to Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the SheetMusic details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the SheetMusic details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an indirect Contributor to the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Resource to a Consumer. A Resource-level DisplayArtistName shall only be provided if it differs from the DisplayArtistName for a Release that contains the Resource and is communicated in the same XML message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ern:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing an Annotation which acknowledges record companies and/or other Parties giving permission for Artists or others featured in the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate"
                     minOccurs="0"
                     type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the SheetMusic was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Genre to which the SheetMusic belongs.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ParentalWarningType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ParentalWarningType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the classification of the SheetMusic according to advice which it carries about the level of explicitness or offensiveness of its content.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalSheetMusicDetails"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TechnicalSheetMusicDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing technical details of the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the SheetMusicDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="Software">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an item of Software.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="SoftwareType" minOccurs="0" type="ern:SoftwareType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsArtistRelated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Software is related to an Artist (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoftwareId" maxOccurs="unbounded" type="ern:SoftwareId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectSoftwareId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkId of a MusicalWork used in the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the Software within the Release which contains it. This is a LocalResourceAnchor starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="ResourceMusicalWorkReferenceList"
                     minOccurs="0"
                     type="ern:ResourceMusicalWorkReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more MusicalWorks contained in the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContainedResourceReferenceList"
                     minOccurs="0"
                     type="ern:ResourceContainedResourceReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ResourceContainedResourceReferences referring to a Resource that is contained in the current Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CreationDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Software was created.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoftwareDetailsByTerritory"
                     maxOccurs="unbounded"
                     type="ern:SoftwareDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Software which may vary according to 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 Flag indicating whether the Software Element was updated (=True) or not (=False). The Flag may only be used when the UpdateIndicator is set to UpdateMessage. When this Boolean Flag is set to true, the MessageRecipient is expected to replace any previously provided Software 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 Language and script for the Elements of the Software as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SoftwareDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors, Dates and other attributes of a Software application which may vary according to Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the Software details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the Software details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an indirect Contributor to the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Resource to a Consumer. A Resource-level DisplayArtistName shall only be provided if it differs from the DisplayArtistName for a Release that contains the Resource and is communicated in the same XML message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PLine for the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ern:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing an Annotation which acknowledges record companies and/or other Parties giving permission for Artists or others featured in the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate"
                     minOccurs="0"
                     type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Software was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Keywords"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Keywords">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Description of the Software containing Keywords.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Synopsis" minOccurs="0" type="ern:Synopsis">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Synopsis of the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Genre to which the Software belongs.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ParentalWarningType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ParentalWarningType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the classification of the Software according to advice which it carries about the level of explicitness or offensiveness of its content.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalSoftwareDetails"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TechnicalSoftwareDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing technical details of the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the SoftwareDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SoundRecording">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a SoundRecording.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="SoundRecordingType"
                     minOccurs="0"
                     type="ern:SoundRecordingType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsArtistRelated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is related to an Artist (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundRecordingId"
                     maxOccurs="unbounded"
                     type="ern:SoundRecordingId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a SoundRecordingId.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectSoundRecordingId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkId of a MusicalWork used in the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the SoundRecording within the Release which contains it. This is a LocalResourceAnchor starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="ReferenceTitle" type="ern:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the ReferenceTitle of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="InstrumentationDescription"
                     minOccurs="0"
                     type="ern:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Description of the Type of instrumentation of the MusicalWork(s) in the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsMedley" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is a Medley (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsPotpourri" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is a Potpourri (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsInstrumental" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is instrumental (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsBackground" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is used as background to other audio or audiovisual material (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsHiddenResource" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is hidden in some way from the Consumer (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsBonusResource" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is additional to those on the original Release of which this is a Version (=True) or not (=False). This element is deprecated. DDEX advises that it may be removed at a future date and therefore recommends against using it. The IsBonusResource element in ResourceGroupContentItem should be used instead.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="HasPreOrderFulfillment" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Flag indicating whether a DSP shall (=True) or shall not (=False) make the SoundRecording available during the pre-oder period. If the Flag is not set or set to false, the SoundRecording shall not be made available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsComputerGenerated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is generated by a computer (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsRemastered" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is remastered (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NoSilenceBefore" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is preceded by a period of silence (=False) or not (=True). </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NoSilenceAfter" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is followed by a period of silence (=False) or not (=True). </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PerformerInformationRequired" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Flag indicating whether performer information is required (=True) or not (=False) when communicating details of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LanguageOfPerformance"
                     minOccurs="0"
                     type="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Language of the Performance recorded in the SoundRecording (represented by an ISO 639-2 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the SoundRecording (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="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundRecordingCollectionReferenceList"
                     minOccurs="0"
                     type="ern:SoundRecordingCollectionReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more Collections. The referenced Collection has to be of CollectionType AudioChapter.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceMusicalWorkReferenceList"
                     minOccurs="0"
                     type="ern:ResourceMusicalWorkReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more MusicalWorks contained in the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContainedResourceReferenceList"
                     minOccurs="0"
                     type="ern:ResourceContainedResourceReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ResourceContainedResourceReferences referring to a Resource that is contained in the current SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CreationDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the SoundRecording was created.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MasteredDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the SoundRecording was originally mastered (in either analogue or digital form).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundRecordingDetailsByTerritory"
                     maxOccurs="unbounded"
                     type="ern:SoundRecordingDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of the SoundRecording which may vary according to Territory.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TerritoryOfCommissioning"
                     minOccurs="0"
                     type="ern:AllTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The country of commissioning.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfFeaturedArtists" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of FeaturedArtists associated with the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfNonFeaturedArtists" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of NonFeaturedArtists associated with the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfContractedArtists" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of ContractedArtists associated with the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfNonContractedArtists" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of NonContractedArtists associated with the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsUpdated" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording Element was updated (=True) or not (=False). The Flag may only be used when the UpdateIndicator is set to UpdateMessage. When this Boolean Flag is set to true, the MessageRecipient is expected to replace any previously provided SoundRecording 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 Language and script for the Elements of the SoundRecording as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SoundRecordingDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of a SoundRecording which may vary according to Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the SoundRecording details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the SoundRecording details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the DisplayArtist for the SoundRecording. The DisplayArtist may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayConductor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a DisplayConductor for the SoundRecording. A DisplayConductor may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an indirect Contributor to the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Resource to a Consumer. A Resource-level DisplayArtistName shall only be provided if it differs from the DisplayArtistName for a Release that contains the Resource and is communicated in the same XML message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name of the Label under which the Release is to be marketed.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsController"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TypedRightsController">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of RightsController of Rights in the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RemasteredDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the SoundRecording was re-mastered (usually digitally).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate"
                     minOccurs="0"
                     type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the 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="ern:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PLine for the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ern:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing an Annotation which acknowledges record companies and/or other Parties giving permission for guests Artists or others featured on the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SequenceNumber" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number indicating the order of the SoundRecording in a group of SoundRecordings in a Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="HostSoundCarrier"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:HostSoundCarrier">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a HostSoundCarrier on which the SoundRecording appears (e.g., the CD on which it was originally released). This Composite exists in the Release Notification Message Suite Standard, to support the identification and matching of SoundRecording information.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MarketingComment" minOccurs="0" type="ern:Comment">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Comment about the promotion and marketing of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Genre to which the SoundRecording belongs.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ParentalWarningType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ParentalWarningType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the classification of the SoundRecording according to advice which it carries about the level of explicitness or offensiveness of its content.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AvRating"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:AvRating">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a rating for the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalSoundRecordingDetails"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TechnicalSoundRecordingDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing technical details of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Keywords"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Keywords">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Description of the SoundRecording containing Keywords.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Synopsis" minOccurs="0" type="ern:Synopsis">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Synopsis of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the SoundRecordingDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="SoundRecordingPreviewDetails">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a preview.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="PartType" minOccurs="0" type="ern:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Description of the Type of Part that the preview relates to, e.g. chorus or intro.</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 Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="EndPoint" minOccurs="0" type="xs:decimal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The end point of the preview given in seconds from the start of the Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the preview, measured from the StartPoint.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TopLeftCorner" minOccurs="0" type="xs:decimal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The position of the preview measured in Pixels or millimetres from the top left corner of the Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="BottomRightCorner" minOccurs="0" type="xs:decimal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The position of the preview measured in Pixels or millimetres  from the bottom right corner of the Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ExpressionType" type="avs:ExpressionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of expression indicating how this should be perceived, e.g. as instruction (meaning that this has to be done to create the preview) or as information (meaning that this has been done to craete the preview).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="TechnicalImageDetails">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing technical details of a Image.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TechnicalResourceDetailsReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the TechnicalImageDetails within the Release which contains it. This is a LocalTechnicalResourceDetailsAnchor starting with the letter T.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="T[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="DrmPlatformType" minOccurs="0" type="ern:DrmPlatformType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of DrmPlatform.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ContainerFormat" minOccurs="0" type="ern:ContainerFormat">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ContainerFormat.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ImageCodecType" minOccurs="0" type="ern:ImageCodecType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of ImageCodec.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ImageHeight" minOccurs="0" type="ern:Extent">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the vertical Extent of an Image of the Image and a UnitOfMeasure (the default is Pixels).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ImageWidth" minOccurs="0" type="ern:Extent">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the horizontal Extent of an Image of the Image and a UnitOfMeasure (the default is Pixels).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AspectRatio" minOccurs="0" type="ern:AspectRatio">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the ratio formed by dividing the ImageHeight by the ImageWidth.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ColorDepth" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">An amount of data determining the color of a pixel of the Image (given in bits per pixel).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ImageResolution" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A number of pixels of the Image displayed in a specific spatial range (given in dpi).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsPreview" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Image is technically a preview of the parent Resource (=True) or not (=False). Note that nothing can be implied from this element as to the conditions under which the preview can be made available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PreviewDetails" minOccurs="0" type="ern:PreviewDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a preview.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ConsumerFulfillmentDate"
                     minOccurs="0"
                     type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of when a consumer is able to get hold of the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="FileAvailabilityDescription"
                        maxOccurs="unbounded"
                        type="ern:Description">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a Description providing details of how a DSP can obtain a File that contains the Image.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="File" maxOccurs="unbounded" type="ern:File">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a File containing the Image that a DSP can obtain.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Fingerprint"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Fingerprint">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Fingerprint and its governing algorithm.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the TechnicalImageDetails as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TechnicalMidiDetails">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing technical details of a MIDI.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TechnicalResourceDetailsReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the TechnicalMidiDetails within the Release which contains it. This is a LocalTechnicalResourceDetailsAnchor starting with the letter T.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="T[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the instantiation of the MIDI if this differs from the Duration provided for the MIDI itself (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). This element must only be used if and when there are no royalty reporting implications on this change in duration and when the specific technical instantiation is a clip taken from a technical instantiation representing the whole MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceProcessingRequired" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI needs to be processed (=True) or not (=False) (typically: transcoded) by the MessageRecipient before being delivered to Consumers.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UsableResourceDuration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the MIDI that may be sold to a Consumer if the MIDI provided is not intended to be provided to Consumers 'as is' but will need to be transcoded into an appropriate format by the MessageRecipient or any other DSP handling the Release before it is sold (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="IsPreview" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the MIDI is technically a preview of the parent Resource (=True) or not (=False). Note that nothing can be implied from this element as to the conditions under which the preview can be made available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PreviewDetails"
                     minOccurs="0"
                     type="ern:SoundRecordingPreviewDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a preview.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ConsumerFulfillmentDate"
                     minOccurs="0"
                     type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of when a consumer is able to get hold of the MIDI.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="FileAvailabilityDescription"
                        maxOccurs="unbounded"
                        type="ern:Description">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a Description providing details of how a DSP can obtain a File that contains the MIDI.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="File" maxOccurs="unbounded" type="ern:File">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a File containing the MIDI that a DSP can obtain.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="NumberOfVoices" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of voices.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundProcessorType"
                     minOccurs="0"
                     type="ern:SoundProcessorType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of sound processor.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Fingerprint"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Fingerprint">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Fingerprint and its governing algorithm.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the TechnicalMidiDetails as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TechnicalSheetMusicDetails">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing technical details of a SheetMusic.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TechnicalResourceDetailsReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the TechnicalSheetMusicDetails within the Release which contains it. This is a LocalTechnicalResourceDetailsAnchor starting with the letter T.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="T[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="DrmPlatformType" minOccurs="0" type="ern:DrmPlatformType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of DrmPlatform.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ContainerFormat" minOccurs="0" type="ern:ContainerFormat">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ContainerFormat.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SheetMusicCodecType"
                     minOccurs="0"
                     type="ern:SheetMusicCodecType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of SheetMusicCodec.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsPreview" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SheetMusic is technically a preview of the parent Resource (=True) or not (=False). Note that nothing can be implied from this element as to the conditions under which the preview can be made available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PreviewDetails" minOccurs="0" type="ern:PreviewDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a preview.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ConsumerFulfillmentDate"
                     minOccurs="0"
                     type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of when a consumer is able to get hold of the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="FileAvailabilityDescription"
                        maxOccurs="unbounded"
                        type="ern:Description">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a Description providing details of how a DSP can obtain a File that contains the SheetMusic.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="File" maxOccurs="unbounded" type="ern:File">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a File containing the SheetMusic that a DSP can obtain.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Fingerprint"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Fingerprint">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Fingerprint and its governing algorithm.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the TechnicalSheetMusicDetails as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TechnicalSoftwareDetails">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing technical details of a Software.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TechnicalResourceDetailsReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the TechnicalSoftwareDetails within the Release which contains it. This is a LocalTechnicalResourceDetailsAnchor starting with the letter T.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="T[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="DrmPlatformType" minOccurs="0" type="ern:DrmPlatformType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of DrmPlatform.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OperatingSystemType"
                     minOccurs="0"
                     type="ern:OperatingSystemType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of OperatingSystem.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsPreview" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Software is technically a preview of the parent Resource (=True) or not (=False). Note that nothing can be implied from this element as to the conditions under which the preview can be made available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PreviewDetails" minOccurs="0" type="ern:PreviewDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a preview.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ConsumerFulfillmentDate"
                     minOccurs="0"
                     type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of when a consumer is able to get hold of the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="FileAvailabilityDescription"
                        maxOccurs="unbounded"
                        type="ern:Description">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a Description providing details of how a DSP can obtain a File that contains the Software.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="File" maxOccurs="unbounded" type="ern:File">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a File containing the Software that a DSP can obtain.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Fingerprint"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Fingerprint">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Fingerprint and its governing algorithm.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the TechnicalSoftwareDetails as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TechnicalSoundRecordingDetails">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing technical details of a SoundRecording.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TechnicalResourceDetailsReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the TechnicalSoundRecordingDetails within the Release which contains it. This is a LocalTechnicalResourceDetailsAnchor starting with the letter T.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="T[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="DrmPlatformType" minOccurs="0" type="ern:DrmPlatformType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of DrmPlatform.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ContainerFormat" minOccurs="0" type="ern:ContainerFormat">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ContainerFormat.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AudioCodecType" minOccurs="0" type="ern:AudioCodecType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of AudioCodec.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="BitRate" minOccurs="0" type="ern:BitRate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the BitRate for the audio data and a UnitOfMeasure (the default is kbps).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfChannels" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A number of audio channels.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SamplingRate" minOccurs="0" type="ern:SamplingRate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the sampling rate of the SoundRecording and a UnitOfMeasure (the default is Hz).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="BitsPerSample" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">An amount of audio data in a sample.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the instantiation of the SoundRecording if this differs from the Duration provided for the SoundRecording itself (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). This element must only be used if and when there are no royalty reporting implications on this change in duration and when the specific technical instantiation is a clip taken from a technical instantiation representing the whole SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceProcessingRequired" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording needs to be processed (=True) or not (=False) (typically: transcoded) by the MessageRecipient before being delivered to Consumers.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UsableResourceDuration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the SoundRecording that may be sold to a Consumer if the SoundRecording provided is not intended to be provided to Consumers 'as is' but will need to be transcoded into an appropriate format by the MessageRecipient or any other DSP handling the Release before it is sold (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="IsPreview" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the SoundRecording is technically a preview of the parent Resource (=True) or not (=False). Note that nothing can be implied from this element as to the conditions under which the preview can be made available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PreviewDetails"
                     minOccurs="0"
                     type="ern:SoundRecordingPreviewDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a preview.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ConsumerFulfillmentDate"
                     minOccurs="0"
                     type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of when a consumer is able to get hold of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="FileAvailabilityDescription"
                        maxOccurs="unbounded"
                        type="ern:Description">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a Description providing details of how a DSP can obtain a File that contains the SoundRecording.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="File" maxOccurs="unbounded" type="ern:File">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a File containing the SoundRecording that a DSP can obtain.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Fingerprint"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Fingerprint">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Fingerprint and its governing algorithm.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the TechnicalSoundRecordingDetails as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TechnicalTextDetails">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing technical details of a Text.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TechnicalResourceDetailsReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the TechnicalTextDetails within the Release which contains it. This is a LocalTechnicalResourceDetailsAnchor starting with the letter T.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="T[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="DrmPlatformType" minOccurs="0" type="ern:DrmPlatformType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of DrmPlatform.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ContainerFormat" minOccurs="0" type="ern:ContainerFormat">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ContainerFormat.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TextCodecType" minOccurs="0" type="ern:TextCodecType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of TextCodec.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsPreview" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Text is technically a preview of the parent Resource (=True) or not (=False). Note that nothing can be implied from this element as to the conditions under which the preview can be made available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PreviewDetails" minOccurs="0" type="ern:PreviewDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a preview.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ConsumerFulfillmentDate"
                     minOccurs="0"
                     type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of when a consumer is able to get hold of the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="FileAvailabilityDescription"
                        maxOccurs="unbounded"
                        type="ern:Description">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a Description providing details of how a DSP can obtain a File that contains the Text.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="File" maxOccurs="unbounded" type="ern:File">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a File containing the Text that a DSP can obtain.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Fingerprint"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Fingerprint">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Fingerprint and its governing algorithm.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the TechnicalTextDetails as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TechnicalUserDefinedResourceDetails">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing technical details of a UserDefinedResource.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TechnicalResourceDetailsReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the TechnicalUserDefinedResourceDetails within the Release which contains it. This is a LocalTechnicalResourceDetailsAnchor starting with the letter T.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="T[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="UserDefinedValue"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:UserDefinedValue">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a UserDefinedValue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsPreview" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the UserDefinedResource is technically a preview of the parent Resource (=True) or not (=False). Note that nothing can be implied from this element as to the conditions under which the preview can be made available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PreviewDetails" minOccurs="0" type="ern:PreviewDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a preview.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ConsumerFulfillmentDate"
                     minOccurs="0"
                     type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of when a consumer is able to get hold of the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="FileAvailabilityDescription"
                        maxOccurs="unbounded"
                        type="ern:Description">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a Description providing details of how a DSP can obtain a File that contains the UserDefinedResource.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="File" maxOccurs="unbounded" type="ern:File">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a File containing the UserDefinedResource that a DSP can obtain.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Fingerprint"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Fingerprint">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Fingerprint and its governing algorithm.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the TechnicalUserDefinedResourceDetails as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TechnicalVideoDetails">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing technical details of a Video.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TechnicalResourceDetailsReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the TechnicalVideoDetails within the Release which contains it. This is a LocalTechnicalResourceDetailsAnchor starting with the letter T.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="T[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="DrmPlatformType" minOccurs="0" type="ern:DrmPlatformType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of DrmPlatform.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OverallBitRate" minOccurs="0" type="ern:BitRate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the overall BitRate and a UnitOfMeasure (the default is kbps).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ContainerFormat" minOccurs="0" type="ern:ContainerFormat">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ContainerFormat.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VideoCodecType" minOccurs="0" type="ern:VideoCodecType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of VideoCodec.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VideoBitRate" minOccurs="0" type="ern:BitRate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the BitRate for the video data and a UnitOfMeasure (the default is kbps).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FrameRate" minOccurs="0" type="ern:FrameRate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Rate for a number of frames shown in the Video in a specific Period of Time and a UnitOfMeasure (the default is Hz, interlaced).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ImageHeight" minOccurs="0" type="ern:Extent">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the vertical Extent of an Image of the Video and a UnitOfMeasure (the default is Pixels).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ImageWidth" minOccurs="0" type="ern:Extent">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the horizontal Extent of an Image of the Video and a UnitOfMeasure (the default is Pixels).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AspectRatio" minOccurs="0" type="ern:AspectRatio">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the ratio formed by dividing the ImageHeight by the ImageWidth.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ColorDepth" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">An amount of data determining the color of a pixel of an Image of the Video (given in bits per pixel).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VideoDefinitionType"
                     minOccurs="0"
                     type="avs:VideoDefinitionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of resolution (or definition) in which the Video is provided.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AudioCodecType" minOccurs="0" type="ern:AudioCodecType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of AudioCodec.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AudioBitRate" minOccurs="0" type="ern:BitRate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the BitRate for the audio data and a UnitOfMeasure (the default is kbps).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfAudioChannels" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A number of audio channels.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AudioSamplingRate" minOccurs="0" type="ern:SamplingRate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the SamplingRate for the audio data and a UnitOfMeasure (the default is Hz).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AudioBitsPerSample" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">An amount of audio data in a sample.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the instantiation of the Video if this differs from the Duration provided for the Video itself (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). This element must only be used if and when there are no royalty reporting implications on this change in duration and when the specific technical instantiation is a clip taken from a technical instantiation representing the whole Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceProcessingRequired" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video needs to be processed (=True) or not (=False) (typically: transcoded) by the MessageRecipient before being delivered to Consumers.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UsableResourceDuration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the Video that may be sold to a Consumer if the Video provided is not intended to be provided to Consumers 'as is' but will need to be transcoded into an appropriate format by the MessageRecipient or any other DSP handling the Release before it is sold (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="IsPreview" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is technically a preview of the parent Resource (=True) or not (=False). Note that nothing can be implied from this element as to the conditions under which the preview can be made available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PreviewDetails"
                     minOccurs="0"
                     type="ern:SoundRecordingPreviewDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a preview.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ConsumerFulfillmentDate"
                     minOccurs="0"
                     type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of when a consumer is able to get hold of the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="FileAvailabilityDescription"
                        maxOccurs="unbounded"
                        type="ern:Description">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a Description providing details of how a DSP can obtain a File that contains the Video.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="File" maxOccurs="unbounded" type="ern:File">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of a File containing the Video that a DSP can obtain.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Fingerprint"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Fingerprint">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Fingerprint and its governing algorithm.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the TechnicalSoundRecordingDetails as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="Text">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Text.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TextType" minOccurs="0" type="ern:TextType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsArtistRelated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Text is related to an Artist (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TextId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TextId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an Identifier of the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectTextId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkId of a MusicalWork used in the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the Text within the Release which contains it. This is a LocalResourceAnchor starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="ResourceMusicalWorkReferenceList"
                     minOccurs="0"
                     type="ern:ResourceMusicalWorkReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more MusicalWorks contained in the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContainedResourceReferenceList"
                     minOccurs="0"
                     type="ern:ResourceContainedResourceReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ResourceContainedResourceReferences referring to a Resource that is contained in the current Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CreationDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Text was created.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TextDetailsByTerritory"
                     maxOccurs="unbounded"
                     type="ern:TextDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Text which may vary according to 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 Flag indicating whether the Text Element was updated (=True) or not (=False). The Flag may only be used when the UpdateIndicator is set to UpdateMessage. When this Boolean Flag is set to true, the MessageRecipient is expected to replace any previously provided Text 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 Language and script for the Elements of the Text as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TextDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors, Dates and other attributes of a Text which may vary according to Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the Text details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the Text details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an indirect Contributor to the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Resource to a Consumer. A Resource-level DisplayArtistName shall only be provided if it differs from the DisplayArtistName for a Release that contains the Resource and is communicated in the same XML message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ern:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing an Annotation which acknowledges record companies and/or other Parties giving permission for Artists or others featured in the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate"
                     minOccurs="0"
                     type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Text was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Keywords"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Keywords">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Description of the Text containing Keywords.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Synopsis" minOccurs="0" type="ern:Synopsis">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Synopsis of the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Genre to which the Text belongs.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ParentalWarningType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ParentalWarningType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the classification of the Text according to advice which it carries about the level of explicitness or offensiveness of its content.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalTextDetails"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TechnicalTextDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing technical details of the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the TextDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TypedRightsController">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a RightsController. RightsControllers are typicallydescribed by Name, Identifier and role(s).</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ern:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="RightsControllerRole"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="avs:RightsControllerRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A role that describes the Party involved in the administration of Rights.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="RightShareUnknown" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether the RightSharePercentage is unknown (=True) or not (=False).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="RightSharePercentage" type="xs:decimal">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The share of the licensed Rights owned by the RightsController. RightShare information is given as a xs:decimal value with up to 6 digits (e.g. '12.5' represents 12.5%). If no information is given, 100% is assumed.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="RightsControllerType"
                     minOccurs="0"
                     type="avs:RightsControllerType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A type of the RightsController.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TerritoryOfRegistration"
                     minOccurs="0"
                     type="ern:AllTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The country of registration.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="StartDate" minOccurs="0" type="xs:date">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Date that marks the beginning of the title (in ISO 8601:2004 format: YYYY-MM-DD).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="EndDate" minOccurs="0" type="xs:date">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Date that marks the end of the title (in ISO 8601:2004 format: YYYY-MM-DD).</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 RightsController in a group of RightsControllers. This is represented in an XML schema as an XML Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="UserDefinedResource">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a UserDefinedResource.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="UserDefinedResourceType"
                     minOccurs="0"
                     type="ern:UserDefinedResourceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsArtistRelated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the UserDefinedResource is related to an Artist (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserDefinedResourceId"
                     maxOccurs="unbounded"
                     type="ern:UserDefinedResourceId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectUserDefinedResourceId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkId of a MusicalWork used in the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the UserDefinedResource within the Release which contains it. This is a LocalResourceAnchor starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="ResourceMusicalWorkReferenceList"
                     minOccurs="0"
                     type="ern:ResourceMusicalWorkReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more MusicalWorks contained in the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContainedResourceReferenceList"
                     minOccurs="0"
                     type="ern:ResourceContainedResourceReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ResourceContainedResourceReferences referring to a Resource that is contained in the current UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserDefinedValue"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:UserDefinedValue">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a UserDefinedValue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserDefinedResourceDetailsByTerritory"
                     maxOccurs="unbounded"
                     type="ern:UserDefinedResourceDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the UserDefinedResource which may vary according to 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 Flag indicating whether the UserDefinedResource Element was updated (=True) or not (=False). The Flag may only be used when the UpdateIndicator is set to UpdateMessage. When this Boolean Flag is set to true, the MessageRecipient is expected to replace any previously provided UserDefinedResource 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 Language and script for the Elements of the UserDefinedResource as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="UserDefinedResourceDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors, Dates and other attributes of a UserDefinedResource application which may vary according to Territory of release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the UserDefinedResource details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the UserDefinedResource details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an indirect Contributor to the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Resource to a Consumer. A Resource-level DisplayArtistName shall only be provided if it differs from the DisplayArtistName for a Release that contains the Resource and is communicated in the same XML message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserDefinedValue"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:UserDefinedValue">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a UserDefinedValue.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PLine for the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate"
                     minOccurs="0"
                     type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the UserDefinedResource was originally published, whether for physical or electronic/online distribution.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Keywords"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Keywords">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Description of the UserDefinedResource containing Keywords.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Synopsis" minOccurs="0" type="ern:Synopsis">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Synopsis of the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Genre to which the UserDefinedResource belongs.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ParentalWarningType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ParentalWarningType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the classification of the UserDefinedResource according to advice which it carries about the level of explicitness or offensiveness of its content.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalUserDefinedResourceDetails"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TechnicalUserDefinedResourceDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing technical details of the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the UserDefinedResourceDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="Video">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Video.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="VideoType" minOccurs="0" type="ern:VideoType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsArtistRelated" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is related to an Artist (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VideoId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:VideoId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an Identifier of the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectVideoId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkId of a MusicalWork used in the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the Video within the Release which contains it. This is a LocalResourceAnchor starting with the letter A.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:ID">
                  <xs:pattern value="A[\d\-_a-zA-Z]+"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="VideoCueSheetReference"
                        maxOccurs="unbounded"
                        type="ern:VideoCueSheetReference">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a VideoCueSheetReference for a CueSheet (specific to this Message).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ReasonForCueSheetAbsence" type="ern:Reason">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing the textual Description of the reason for the Identifier being used as a proxy.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="ReferenceTitle" minOccurs="0" type="ern:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the ReferenceTitle of the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="InstrumentationDescription"
                     minOccurs="0"
                     type="ern:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Description of the Type of instrumentation of the MusicalWork(s) in the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsMedley" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is a Medley (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsPotpourri" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is a Potpourri (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsInstrumental" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is instrumental (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsBackground" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is used as background to other audio or audiovisual material (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsHiddenResource" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is hidden in some way from the Consumer (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsBonusResource" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is additional to those on the original Release of which this is a Version (=True) or not (=False). This element is deprecated. DDEX advises that it may be removed at a future date and therefore recommends against using it. The IsBonusResource element in ResourceGroupContentItem should be used instead.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="HasPreOrderFulfillment" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Flag indicating whether a DSP shall (=True) or shall not (=False) make the Video available during the pre-oder period. If the Flag is not set or set to false, the Video shall not be made available.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsRemastered" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is remastered (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NoSilenceBefore" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is preceded by a period of silence (=False) or not (=True). </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NoSilenceAfter" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether the Video is followed by a period of silence (=False) or not (=True). </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PerformerInformationRequired" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Flag indicating whether performer information is required (=True) or not (=False) when communicating details of the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LanguageOfPerformance"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The original Language of the Performance recorded in the Video (represented by an ISO 639-2 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LanguageOfDubbing"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Language of dubbing used in the Video (represented by an ISO 639-2 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SubTitleLanguage"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="avs:IsoLanguageCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Language of SubTitles in the Video (represented by an ISO 639-2 LanguageCode).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Duration" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the Video (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="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VideoCollectionReferenceList"
                     minOccurs="0"
                     type="ern:SoundRecordingCollectionReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more Collections. The referenced Collection has to be of CollectionType VideoChapter.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceMusicalWorkReferenceList"
                     minOccurs="0"
                     type="ern:ResourceMusicalWorkReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more MusicalWorks contained in the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContainedResourceReferenceList"
                     minOccurs="0"
                     type="ern:ResourceContainedResourceReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ResourceContainedResourceReferences referring to a Resource that is contained in the current Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CreationDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Video was created.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MasteredDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the Video was originally mastered (in either analogue or digital form).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VideoDetailsByTerritory"
                     maxOccurs="unbounded"
                     type="ern:VideoDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of the Video which may vary according to Territory of release. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TerritoryOfCommissioning"
                     minOccurs="0"
                     type="ern:AllTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The country of commissioning.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfFeaturedArtists" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of FeaturedArtists associated with the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfNonFeaturedArtists" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of NonFeaturedArtists associated with the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfContractedArtists" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of ContractedArtists associated with the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NumberOfNonContractedArtists" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number of NonContractedArtists associated with the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsUpdated" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether the Video Element was updated (=True) or not (=False). The Flag may only be used when the UpdateIndicator is set to UpdateMessage. When this Boolean Flag is set to true, the MessageRecipient is expected to replace any previously provided Video 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 Language and script for the Elements of the Video as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="VideoDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of a Video which may vary according to Territory of release. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the SoundRecording details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the SoundRecording details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the DisplayArtist for the SoundRecording. The DisplayArtist may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayConductor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a DisplayConductor for the Video. A DisplayConductor may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Contributor to the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IndirectResourceContributor"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:IndirectResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an indirect Contributor to the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Resource to a Consumer. A Resource-level DisplayArtistName shall only be provided if it differs from the DisplayArtistName for a Release that contains the Resource and is communicated in the same XML message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name of the Label under which the Release is to be marketed.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsController"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TypedRightsController">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of RightsController of Rights in the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RemasteredDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the SoundRecording was re-mastered (usually digitally).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalResourceReleaseDate"
                     minOccurs="0"
                     type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the 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="ern:PLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PLine for the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CourtesyLine" minOccurs="0" type="ern:CourtesyLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing an Annotation Annotation which acknowledges record companies and/or other Parties giving permission for guests Artists or others featured on the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SequenceNumber" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The number indicating the order of the Video in a group of Videos in a Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="HostSoundCarrier"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:HostSoundCarrier">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a HostSoundCarrier on which the Video appears (e.g., the CD on which it was originally released). This Composite exists in the Release Notification Message Suite Standard, to support the identification and matching of Video information.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MarketingComment" minOccurs="0" type="ern:Comment">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Comment about the promotion and marketing of the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Genre to which the Video belongs.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ParentalWarningType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ParentalWarningType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the classification of the Video according to advice which it carries about the level of explicitness or offensiveness of its content.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AvRating"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:AvRating">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a rating for the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FulfillmentDate" minOccurs="0" type="ern:FulfillmentDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a FulfillmentDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Keywords"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Keywords">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Description of the Video containing Keywords.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Synopsis" minOccurs="0" type="ern:Synopsis">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Synopsis of the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLine"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CLine">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CLine for the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalVideoDetails"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TechnicalVideoDetails">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing technical details of the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Character"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Character">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Character in the Video. A Character may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the SoundRecordingDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="WebPolicy">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Web policy.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Condition" type="ern:Condition">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of conditions.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="AccessBlockingRequested" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Flag indicating whether a MessageRecipient shall block all access to the Release (=True) or not (=False).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="AccessLimitation" minOccurs="0" type="avs:AccessLimitation">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Type of limitation on the access of the UgcSite. This governs whether the content of UgcSites is only accessible to members/friends of the site or not.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="EmbeddingAllowed" minOccurs="0" type="xs:boolean">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Flag indicating whether a user is allowed to embed a Release on his website outside the UgcSite (=True) or not (=False).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="UserRatingAllowed" minOccurs="0" type="xs:boolean">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Flag indicating whether a user is allowed to provide a rating for the Release on the UgcSite (=True) or not (=False).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="UserCommentAllowed" minOccurs="0" type="xs:boolean">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Flag indicating whether a user is allowed to provide a Comment for the Release on the UgcSite (=True) or not (=False).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="UserResponsesAllowed" minOccurs="0" type="xs:boolean">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Flag indicating whether a user is allowed to provide a response to a Comment for the Release on the UgcSite (=True) or not (=False).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="SyndicationAllowed" minOccurs="0" type="xs:boolean">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Flag indicating whether syndication is allowed (=True) or not (=False).</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="AdministratingRecordCompany">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an AdministratingRecordCompany.</xs:documentation>
      </xs:annotation>
      <xs:choice>
         <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:sequence>
            <xs:element name="PartyName" maxOccurs="unbounded" type="ern:PartyName">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyName(s).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="PartyId"
                        minOccurs="0"
                        maxOccurs="unbounded"
                        type="ern:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other 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 Namespace of the Role if it belongs to a proprietary scheme. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="UserDefinedValue" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">A UserDefined value of the Role. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Role"
                    type="avs:AdministratingRecordCompanyRole"
                    use="required">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The role played by the Party responsible for administering Rights in a Resource or a Release.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="AllTerritoryCode">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a TerritoryCode.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:AllTerritoryCode">
            <xs:attribute name="IdentifierType"
                          type="avs:TerritoryCodeTypeIncludingDeprecatedCodes">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A standard used for the TerritoryCode. This is represented in an XML schema as an XML Attribute. If this Attribute is not provided, it is assumed that the code is a TerritoryCode in accordance with ISO 3166-1 Alpha 2 standard (or Worldwide).</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="Artist">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an Artist. An Artist may be described through Name, Identifier and Roles.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ern:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="ArtistRole" maxOccurs="unbounded" type="ern:ArtistRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a role played by the Artist in relation to other 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 Artist in a group of Artists. This is represented in an XML schema as an XML Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ArtistDelegatedUsageRights">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of the kinds of usage for which rights have been delegated by an Artist.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="UseType" maxOccurs="unbounded" type="ern:UseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the use for which rights are delegated.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserInterfaceType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:UserInterfaceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a physical interface by which a Consumer uses a Service or Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PeriodOfRightsDelegation" type="ern:Period">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details about a Period of Time for which the delegation of usage rights applies. Periods are typically described by at least a StartDate or EndDate.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TerritoryOfRightsDelegation"
                     maxOccurs="unbounded"
                     type="ern:CurrentTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Territory for which the delegation of usage rights applies.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MembershipType" type="avs:MembershipType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of membership of the Artist.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ArtistRole">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an ArtistRole. Note: This can be used in a DdexMessage in relation to any Performance or Fixation either of which may form the whole or part of the Resource itself. Example: if an 'AssociatedPerformer' is shown as a Contributor to a MusicalWork it refers to a Performer of a Resource (e.g. a SoundRecording) expressing the MusicalWork.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ArtistRole">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ArtistRole. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ArtistRole. 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="AspectRatio">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing an AspectRatio and an AspectRatioType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="AspectRatioType" type="avs:UnitOfFrameRate">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Type of the AspectRatio. This is represented in an XML schema as an XML Attribute. If this Attribute is not provided, it is assumed that the AspectRatio is a PixelAspectRatio.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="AudioCodecType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an AudioCodecType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:AudioCodecType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Identifier of the Version of the AudioCodecType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the AudioCodecType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the AudioCodecType. 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="AvRating">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a rating for an audio-visual 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 AvRating.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RatingAgency" type="ern:RatingAgency">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of an Organization that issues the AvRating.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RatingSchemeDescription"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Description of the RatingText.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="BitRate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a BitRate and a UnitOfMeasure.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="UnitOfMeasure" type="avs:UnitOfBitRate">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The UnitOfMeasure of the BitRate. 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="CLine">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a CLine.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Year" minOccurs="0" type="xs:gYear">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Year of the CLine.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CLineCompany" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Name of the company releasing the Creation. This may be an owner or a licensee of the 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 CLine.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script of the CLineText as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="CarrierType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a CarrierType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:CarrierType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the CarrierType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the CarrierType. 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="CatalogNumber">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Namespace of the CatalogNumber. 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="Character">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Character. A Character may be described through Name, Identifier and Roles.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ern:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="ResourceContributor"
                     minOccurs="0"
                     type="ern:DetailedResourceContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Name, Identifier and role(s) of a 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 Character in a group of Characters. This is represented in an XML schema as an XML Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="CollectionCollectionReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a 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 Collection in a group of Collections within a Medley, SoundRecording or other Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionCollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a Collection (specific to this Message). This is a LocalCollectionAnchorReference starting with the letter X. The referenced Collection has to be of CollectionType Series, Season or 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 Creation, measured from the start of the Resource from which the 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 Duration of the use of the Creation that is referenced in the 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 Creation, measured from the start of the Resource from which the 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 Collection or Resource was included in the parent Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CollectionCollectionReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a list of 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 Collections (typically Chapters).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CollectionCollectionReference"
                     maxOccurs="unbounded"
                     type="ern:CollectionCollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a CollectionCollectionReference for a Collection (specific to this Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CollectionId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A 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 GRid identifying the Collection. This is the preferred Element and is mandatory if a GRid is available. A 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 ISRC (International Standard Recording Code as defined in  ISO 3901) for the Collection. An 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 ISAN (International Standard Audiovisual Number as defined in ISO 15706) for the Collection. An 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 Identifier of a International Standard Audiovisual Number as defined in ISO 15706-2) for the 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="ern:ICPN">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the ICPN used as proxy for identification of the Collection. Only applicable when the Collection is an abstraction of a complete PhysicalProduct. An ICPN comprises 12 or 13 digits, depending whether it is an EAN (13) or a UPC (12).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CatalogNumber" minOccurs="0" type="ern:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CatalogNumber of the Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the 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 Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this Identifier is deemed to be the current one.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="CollectionType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a CollectionType. Collections referenced from Video Resources are of CollectionType VideoChapter . Collections referenced from a Release composite are of CollectionType Series, Season or Episode.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:CollectionType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the CollectionType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the CollectionType. 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="CollectionWorkReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a CollectionWorkReference.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CollectionWorkReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a Work (specific to this Message). This is a 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="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the use of the Work that is referenced in the CollectionWorkReference (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="CollectionWorkReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a list of CollectionWorkReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="CollectionWorkReference"
                     maxOccurs="unbounded"
                     type="ern:CollectionWorkReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a CollectionWorkReference for a Collection (specific to this Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Comment">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an 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 Language and script of the Comment as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="CommercialModelType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a CommercialModelType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:CommercialModelType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the CommercialModelType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the CommercialModelType. 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="Condition">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a condition.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Value" type="xs:decimal">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The numeric value of the condition.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Unit" type="avs:UnitOfConditionValue">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A UnitOfMeasure for the condition value.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RelationalRelator" type="avs:RelationalRelator">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Relator expressing the accuracy of the condition value.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ConsumerRentalPeriod">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Period a DSP may rent something to a 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 Flag indicating whether a Period can be extended after the end of a 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="ContactId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of contact Identifiers of a Party.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="EmailAddress"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">An EmailAddress of the Party.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PhoneNumber"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A PhoneNumber of the Party.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FaxNumber"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A FaxNumber of the Party.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ContainerFormat">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ContainerFormat.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ContainerFormat">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ContainerFormat. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ContainerFormat. 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="CourtesyLine">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an 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 Language and script of the CourtesyLine as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="CreationId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a CreationIds.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISWC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ISWC (International Standard Musical Work Code defined in ISO 15707) identifying the MusicalWork. An 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 MusicalWorkId identifying the MusicalWork within the catalog of its 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 MusicalWorkId identifying a MusicalWork within the catalog of its 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 ISRC (International Standard Recording Code as defined in  ISO 3901) for the Resource. An 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 ISMN (International Standard Music Number defined in ISO 10957) for the Resource. An ISMN is a thirteen-digit number. Pre-2008 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 ISAN (International Standard Audiovisual Number as defined in ISO 15706) for the Resource. An 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 Identifier of a International Standard Audiovisual Number as defined in ISO 15706-2) for the 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 ISBN (International Standard Book Number defined in ISO 2108) for the Resource. An ISBN is a 13-digit number. Pre-2007, 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 ISSN (International Standard Serial Number defined in ISO 3297) for the Resource. An 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 SICI (Serial Item and Contribution Identifier defined in ANSI/NISO Z39.56-199)  for the Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CatalogNumber" minOccurs="0" type="ern:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CatalogNumber of the Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the Creation.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="CueCreationReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a CueCreationReference.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="CueWorkReference">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Reference for a Work (specific to this Message). This is a 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 Reference for a Resource (specific to this Message). This is a 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 Composite containing details of a CueOrigin.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:CueOrigin">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the CueOrigin. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the CueOrigin. 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="CueSheetType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a CueSheetType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:CueSheetType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the CueSheetType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the CueSheetType. 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="CueThemeType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ThemeType for a Creation referenced in a Cue.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ThemeType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the CueThemeType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the CueThemeType. 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="CueUseType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a CueUseType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:CueUseType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the CueUseType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the CueUseType. 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="CueVisualPerceptionType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a VisualPerceptionType for a Creation referenced in a Cue.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:VisualPerceptionType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the CueVisualPerceptionType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the CueVisualPerceptionType. 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="CueVocalType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a VocalType for a Creation referenced in a Cue.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:VocalType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the CueVocalType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the CueVocalType. 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="CurrentTerritoryCode">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a TerritoryCode.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:CurrentTerritoryCode">
            <xs:attribute name="IdentifierType" type="avs:TerritoryCodeType">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A standard used for the TerritoryCode. This is represented in an XML schema as an XML Attribute. If this Attribute is not provided, it is assumed that the code is a TerritoryCode in accordance with ISO 3166-1 Alpha 2 standard (or Worldwide).</xs:documentation>
               </xs:annotation>
            </xs:attribute>
         </xs:extension>
      </xs:simpleContent>
   </xs:complexType>
   <xs:complexType name="DSP">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a DSP acting as a Licensee in a commercial relationship.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ern:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="TradingName" minOccurs="0" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a TradingName of the 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 URL for the DSP's web site.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TerritoryCode" minOccurs="0" type="ern:CurrentTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Territory from which the DSP operates. This Territory may differ from the one in which SalesTransactions occur. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the DSP as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="DealReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Language and script of the DealReference as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="Description">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an 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 Language and script of the Description as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="DetailedResourceContributor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of the Name, Identifier and role(s) of a Contributor to a Resource.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ern:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="ResourceContributorRole"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ResourceContributorRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a role played by the Contributor.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsFeaturedArtist" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Flag indicating whether the Contributor is a featured Artist (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsContractedArtist" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Flag indicating whether the Contributor is an Artist that has a contract for its part in creating the Resource (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="InstrumentType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of musical instrument played by the Artist.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ArtistDelegatedUsageRights"
                     minOccurs="0"
                     type="ern:ArtistDelegatedUsageRights">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the kinds of usage for which rights have been delegated by the Artist.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Sex" minOccurs="0" type="avs:Sex">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">Sex</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DateAndPlaceOfBirth" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of birth.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DateAndPlaceOfDeath" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of death.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PrimaryRole" minOccurs="0" type="ern:ArtistRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the primary role played by the Artist in relation to other Artists.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PrimaryInstrumentType" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of (musical) instrument primarily played by the Artist.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="GoverningAgreementType"
                     minOccurs="0"
                     type="ern:GoverningAgreementType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Type of an agreement that covers the Artist's participation in making a SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ContactInformation" minOccurs="0" type="ern:ContactId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of contact Identifiers of the Artist.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TerritoryOfResidency"
                     minOccurs="0"
                     type="ern:AllTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The country of main residency of the Artist.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Citizenship" minOccurs="0" type="ern:CurrentTerritoryCode">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The country of whose citizenship the Artist has.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AdditionalRoles"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ArtistRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the additional roles played by the Artist.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Genre"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Genre">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a typical or main Genre relating to the Artist.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Membership"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Membership">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a membership in a collective rights management organization.</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 ResourceContributor in a group of ResourceContributors that have contributed to a Resource. This is represented in an XML schema as an XML Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="DistributionChannelType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a DistributionChannelType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:DistributionChannelType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the DistributionChannelType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the DistributionChannelType. 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="DrmPlatformType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a DrmPlatformType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:DrmPlatformType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Identifier of the Version of the DrmPlatformType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the DrmPlatformType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the DrmPlatformType. 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="EventDate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of an 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 Flag indicating whether the reported Date is approximate (=True) or exact (=False). This is represented in an XML schema as an XML Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsBefore" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether the Event being described occurred sometime before the reported Date (=True) or not (=False). This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsAfter" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether the Event being described occurred sometime after the reported Date (=True) or not (=False). This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Territory in which the Event occurred. This is represented in an XML schema as an XML Attribute. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LocationDescription" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Description of the location in which the Event occurred. It offers the opportunity to describe a place more precisely than using the TerritoryCode. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Language and script for the LocationDescription as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="EventDateTime">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of the DateTime and Place of an 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 Flag indicating whether the reported DateTime is approximate (=True) or exact (=False). This is represented in an XML schema as an XML Attribute. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsBefore" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether the Event being described occurred sometime before the reported DateTime (=True) or not (=False). This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsAfter" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether the Event being described occurred sometime after the reported DateTime (=True) or not (=False). This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="TerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Territory in which the Event occurred. This is represented in an XML schema as an XML Attribute. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LocationDescription" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Description of the location in which the Event occurred. It offers the opportunity to describe a place more precisely than using the TerritoryCode. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Language and script for the LocationDescription as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="Extent">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing an Extent and a UnitOfMeasure.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="UnitOfMeasure" type="avs:UnitOfExtent">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The UnitOfMeasure of the Extent. 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="ExternalResourceLink">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of promotional or other material in digital form related to a Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="URL" maxOccurs="unbounded" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A URL of the linked external Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ValidityPeriod" minOccurs="0" type="ern:Period">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details about the Period of Time during which the 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 Identifier which provides a communication link to the related external Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ExternallyLinkedResourceType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ExternallyLinkedResourceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of a Resource pointed to by the ExternalResourceLink.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FileFormat" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The FileFormat of the external Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ExternallyLinkedResourceType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an ExternallyLinkedResourceType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ExternallyLinkedResourceType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ExternallyLinkedResourceType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ExternallyLinkedResourceType. 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="File">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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">The Name of the File representing the Resource. The FileName may not contain any path information and the concatenation of FilePath and FileName shall be the a complete valid path to the Resource File.</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="FilePath" minOccurs="0" type="xs:string">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">The location of the File representing the Resource relative to the XML file containing the NewReleaseMessage. The FilePath may not contain any FileName information and the concatenation of FilePath and FileName shall be a complete valid path to the Resource File.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
            <xs:element name="URL" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A URL of the File.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="HashSum" minOccurs="0" type="ern:HashSum">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a HashSum of the 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="FingerprintAlgorithmType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a FingerprintAlgorithmType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:FingerprintAlgorithmType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the FingerprintAlgorithmType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the FingerprintAlgorithmType. 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="FrameRate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a FrameRate and a UnitOfMeasure.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="UnitOfMeasure" type="avs:UnitOfFrameRate">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The UnitOfMeasure of the FrameRate. 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="FulfillmentDate">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Resource (in ISO 8601:2004 format: YYYY-MM-DD). If no FulfillmentDate is provided the FulfillmentDate is the StartDate of the respective Deal. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceReleaseReference" minOccurs="0" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of a Release for a Resource. This is a 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 Composite containing details of a Genre.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="GenreText" type="ern:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Description of a genre or style (such as Musical, literary or audio-visual) with which a Creation is associated.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SubGenre" minOccurs="0" type="ern:Description">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Description of a secondary genre or style with which a 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 Language and script for the Elements of the Genre as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="GoverningAgreementType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a GoverningAgreementType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:GoverningAgreementType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the GoverningAgreementType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the GoverningAgreementType. 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="HashSum">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 HashSum.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="HashSumAlgorithmType" type="ern:HashSumAlgorithmType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of HashSumAlgorithm governing the HashSum.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="HashSumDataType" minOccurs="0" type="avs:BinaryDataType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The datatype of the HashSum.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="HashSumAlgorithmType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a HashSumAlgorithmType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:HashSumAlgorithmType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the HashSumAlgorithmType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the HashSumAlgorithmType. 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="HostSoundCarrier">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a HostSoundCarrier of a SoundRecording. This Composite exists in the Release Notification Message Suite Standard to support the identification and matching of SoundRecording information.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ReleaseIds of the HostSoundCarrier. If available, a GRid has to be used. If the HostSoundCarrier contains only one SoundRecording, the ISRC of the SoundRecording may be used instead.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the HostSoundCarrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Title"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Title">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Title of the HostSoundCarrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtist"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Artist">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the DisplayArtist for the HostSoundCarrier. The DisplayArtist may be described through Name, Identifier and Roles.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AdministratingRecordCompany"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:AdministratingRecordCompany">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the AdministratingRecordCompany for the Rights in the HostSoundCarrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TrackNumber" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The TrackNumber of the SoundRecording within the HostSoundCarrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VolumeNumberInSet" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The SequenceNumber within the Set of the volume containing the SoundRecording, where the HostSoundCarrier is a 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 Composite containing details of an 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 Flag indicating whether the ICPN is specifically an EAN (=True) or a UPC (=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="ImageCodecType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an ImageCodecType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ImageCodecType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Identifier of the Version of the ImageCodecType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ImageCodecType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ImageCodecType. 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="ImageId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of an Image.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ProprietaryId" maxOccurs="unbounded" type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the Image.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this 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 Composite containing details of an ImageType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ImageType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ImageType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ImageType. 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="IndirectResourceContributor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of the Name, Identifier and role(s) of an indirect Contributor to a Resource.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ern:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="IndirectResourceContributorRole"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkContributorRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a role played by the indirect 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 Resource. This is represented in an XML schema as an XML Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="Keywords">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Description containing 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 Language and script of the Keywords as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="LabelName">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Language and script of the LabelName as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LabelNameType" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Type of LabelName. 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="LinkedReleaseResourceReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a LinkedReleaseResourceReference for a Resource which is linked to a ContentItem.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ern:ddex_LocalResourceAnchorReference">
            <xs:attribute name="LinkDescription" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing a  Description of the link for the ReleaseResourceReference.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Language and script for the LinkDescription as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="Membership">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a membership in a collective rights management organization.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Organization" type="ern:PartyDescriptor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the collective rights management organization.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MembershipType" type="avs:MembershipType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of membership.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="StartDate" minOccurs="0" type="xs:date">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The StartDate of the membership.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="EndDate" minOccurs="0" type="xs:date">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The EndDate of the membership.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="MessageAuditTrail">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing information about Parties in between the original MessageSender and ultimate MessageRecipient.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MessageAuditTrailEvent"
                     maxOccurs="unbounded"
                     type="ern:MessageAuditTrailEvent">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Party handling the Message and the 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 Language and script for the Elements of the MessageAuditTrail as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MessageAuditTrailEvent">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Party handling a Message and the Time at which the handling took place.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MessagingPartyDescriptor" type="ern:MessagingParty">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MessagingParty.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DateTime" type="xs:dateTime">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The DateTime at which the Message was handled by the 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 Composite placed at the beginning of each DdexMessage providing information about the Message, such as MessageSender, MessageRecipient and a Message creation time stamp.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MessageThreadId" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A xs:string used to uniquely identify the thread of Messages of which the current Message is a part. One example of such a 'thread' is the chain of NewReleaseMessages being sent from ReleaseCreator to wholesale ReleaseDistributor 1 to retail DSP when communicating information about the same Release(s). A common MessageThreadId will allow all these messages to be tied together. This element is deprecated. DDEX advises that this value will be removed at a future date and therefore recommends against using it.</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 Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageFileName" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The FileName, possibly including the FilePath, of the XML File containing the current Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageSender" type="ern:MessagingParty">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the MessageSender.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SentOnBehalfOf" minOccurs="0" type="ern:MessagingParty">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Party on whose behalf the Message is sent.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageRecipient" type="ern:MessagingParty">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the MessageRecipient.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageCreatedDateTime" type="xs:dateTime">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The DateTime on which the 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="ern:MessageAuditTrail">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing information about Parties in between the original MessageSender and ultimate MessageRecipient.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Comment" minOccurs="0" type="ern:Comment">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a human-readable Comment about the Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MessageControlType"
                     minOccurs="0"
                     type="avs:MessageControlType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The indicator used to distinguish a live Message from a test Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the MessageHeader as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MessagingParty">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a MessagingParty.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party handling the Message. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PartyName" minOccurs="0" type="ern:PartyName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PartyNames for the Party handling the Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TradingName" minOccurs="0" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a TradingName for the Party handling the Message.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the MessagingParty as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MidiId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a Midi.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ProprietaryId" maxOccurs="unbounded" type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this 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 Composite containing details of a MidiType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:MidiType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the MidiType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the MidiType. 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="MusicalWork">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWork.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MusicalWorkId" maxOccurs="unbounded" type="ern:MusicalWorkId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkId of the MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the MusicalWork within the Release which contains it. This is a 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="ern:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ReferenceTitle of the MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkContributor"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details a MusicalWorkContributor to the MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightShare"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:RightShare">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a RightShare for the MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkDetailsByTerritory"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of the MusicalWork which may vary according to 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 Flag indicating whether the MusicalWork Element was updated (=True) or not (=False). The Flag may only be used when the UpdateIndicator is set to UpdateMessage. When this Boolean Flag is set to true, the MessageRecipient is expected to replace any previously provided 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 Language and script for the Elements of the MusicalWork as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MusicalWorkContributor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details a MusicalWorkContributor.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ern:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="MusicalWorkContributorRole"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkContributorRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a role played by the Contributor in relation to the MusicalWork. Note: This can be used in a DdexMessage in relation to any Work, Performance or Fixation any of which may form the whole or part of the Resource itself. Example: if an 'AssociatedPerformer' is shown as a Contributor to a MusicalWork it refers to a performer of a Resource (e.g. a SoundRecording) expressing the MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SocietyAffiliation"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:SocietyAffiliation">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a society affiliation for the 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 MusicalWorkContributor in a group of MusicalWorkContributors that have contributed to a MusicalWork. This is represented in an XML schema as an XML Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MusicalWorkContributorRole">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkContributorRole. Note: This can be used in a DdexMessage in relation to any Work, Performance or Fixation any of which may form the whole or part of the Resource itself. Example: if an 'AssociatedPerformer' is shown as a Contributor to a MusicalWork it refers to a performer of a Resource (e.g. a SoundRecording) expressing the MusicalWork.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:MusicalWorkContributorRole">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the MusicalWorkContributorRole. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the MusicalWorkContributorRole. 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="MusicalWorkDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Descriptors and other attributes of a MusicalWork which may vary according to Territory of release. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the MusicalWork details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the MusicalWork details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="MusicalWorkContributor"
                     maxOccurs="unbounded"
                     type="ern:MusicalWorkContributor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details a MusicalWorkContributor to the MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Resource to a Consumer. A Resource-level DisplayArtistName shall only be provided if it differs from the DisplayArtistName for a Release that contains the Resource and is communicated in the same XML message.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the MusicalWorkDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="MusicalWorkId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWorkId.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISWC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ISWC (International Standard Musical Work Code defined in ISO 15707) identifying the MusicalWork. An 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 MusicalWorkId identifying the MusicalWork within the catalog of its 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 MusicalWorkId identifying a MusicalWork within the catalog of its 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="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this 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 Composite containing details of a MusicalWorkType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:MusicalWorkType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the MusicalWorkType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the MusicalWorkType. 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="Name">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Language and script of the Name as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="OperatingSystemType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of an OperatingSystemType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:OperatingSystemType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Identifier of the Version of the OperatingSystemType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the OperatingSystemType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the OperatingSystemType. 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="PLine">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a PLine.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Year" minOccurs="0" type="xs:gYear">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Year of the PLine.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PLineCompany" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Name of the company releasing the Creation. This may be an owner or a licensee of the 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 PLine.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script of the PLineText as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="PLineType" type="avs:PLineType">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">A Type of PLine. This is represented in an XML schema as an XML Attribute. If this Attribute is not provided, it is assumed that the PLine is a OriginalPLine.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ParentalWarningType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ParentalWarningType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ParentalWarningType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ParentalWarningType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ParentalWarningType. 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="PartyDescriptor">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Party. Parties are typically described through Names and/or Identifiers.</xs:documentation>
      </xs:annotation>
      <xs:choice>
         <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:sequence>
            <xs:element name="PartyName" maxOccurs="unbounded" type="ern:PartyName">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyName(s).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="PartyId"
                        minOccurs="0"
                        maxOccurs="unbounded"
                        type="ern:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other 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 Composite containing details of a PartyId. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other 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 Namespace of the PartyId if it belongs to a proprietary Party xs:ID scheme. If the PartyId is a DPID, the Namespace Element must not be used. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsDPID" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether the PartyId is a DPID (=True) or not (=False). This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="IsISNI" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether the PartyId is an ISNI (=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="PartyName">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a PartyName. Name details for a Party typically either contain a FullName or a KeyName.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="FullName" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the complete Name of the Party, in its normal form of presentation (e.g. John H. Smith, Acme Music Inc, A 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 FullName transcribed using 7-bit ASCII code.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="FullNameIndexed" minOccurs="0" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the complete Name of the Party in the form in which it normally appears in an alphabetic index, with the KeyName first (e.g. Smith, John H.; Beatles, A Composite containing the).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NamesBeforeKeyName" minOccurs="0" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name(s) preceding the KeyName in the FullName (and that is placed after it in a FullNameIndexed). Examples: 'George' in 'George Michael'; 'John Fitzgerald' in 'John Fitzgerald Kennedy'. Not all PartyNames have a NamesBeforeKeyName (e.g. Madonna, EMI Music Inc).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="KeyName" minOccurs="0" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Part of a Name of the 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 FullName, and in Asian name forms often at the beginning of a FullName. </xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="NamesAfterKeyName" minOccurs="0" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name(s) following the KeyName. Example:'Ibrahim' (in Anwar Ibrahim). This is common, e.g., in many Asian personal name forms where a FullName begins with the KeyName, which is followed by other names.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="AbbreviatedName" minOccurs="0" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a short version of the 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 Language and script for the Elements of the PartyName as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="Period">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details about a Period of Time. Periods are typically describedby at least a StartDate or EndDate (or StartDateTime or EndDateTime) where the StartDate(Time) and EndDate(Time) are included in the Period. Thus a one-day period can be described by using the same date in the StartDate and EndDate.</xs:documentation>
      </xs:annotation>
      <xs:choice>
         <xs:sequence>
            <xs:element name="StartDate" minOccurs="0" type="ern:EventDate">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of an Event that marks the beginning of the Period (in ISO 8601:2004 format: YYYY-MM-DD). The StartDate must be earlier than the EndDate if both are provided.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="EndDate" minOccurs="0" type="ern:EventDate">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of an Event that marks the end of the Period (in ISO 8601:2004 format: YYYY-MM-DD). The EndDate must not be earlier than the StartDate if both are provided.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:sequence>
         <xs:sequence>
            <xs:element name="StartDateTime" minOccurs="0" type="ern:EventDateTime">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the DateTime and Place of an Event that marks the beginning of the 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="ern:EventDateTime">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the DateTime and Place of an Event that marks the end of the Period (in ISO 8601:2004 format: YYYY-DD-MMThh:mm:ss). The EndDateTime must not be earlier 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 Composite containing details of a Price.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="CurrencyCode" type="avs:CurrencyCode" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Currency of the Price (represented by an ISO 4217 CurrencyCode). 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="PriceRangeType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a PriceRangeType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:PriceRangeType">
            <xs:attribute name="Namespace" type="xs:string" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the PriceRangeType. 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="PriceType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a PriceType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:PriceType">
            <xs:attribute name="Namespace" type="xs:string" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the PriceType. 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="PromotionalCode">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Namespace of the PromotionalCode. 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="ProprietaryId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Namespace of the ProprietaryId. 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="Purpose">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Purpose.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:Purpose">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the Purpose. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the Purpose. 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="RatingAgency">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a RatingAgency.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:RatingAgency">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the RatingAgency. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the RatingAgency. 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="Reason">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Language and script of the Reason as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="ReasonType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ReasonType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ReasonType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ReasonType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ReasonType. 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="ReferenceTitle">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ReferenceTitle.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TitleText" type="ern:TitleText">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the text of the ReferenceTitle.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SubTitle" minOccurs="0" type="ern:SubTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a SubTitle of the ReferenceTitle, including Titles of Versions used to differentiate different versions of the same Title, as required by the GRid and ISRC ReferenceDescriptiveMetadataSets (where the SubTitle is called Version Title).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the ReferenceTitle as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="RelatedRelease">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Release (or a PhysicalProduct or a DigitalProduct derived from such a Release) which is related to a Resource, Release or Product.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseId" maxOccurs="unbounded" type="ern:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ReleaseIds. If available, a GRid shall always to be used. If the Release contains only one SoundRecording, the ISRC of the SoundRecording may be used instead. If the Release is an abstraction of a complete PhysicalProduct (such as a CD Album), the ICPN of the 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="ern:ReferenceTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the ReferenceTitle of the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseSummaryDetailsByTerritory"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ReleaseSummaryDetailsByTerritory">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing summary details of Descriptors and other attributes of the Release which may vary according to Territory of Release. Territory of Release may be the world.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseRelationshipType" type="ern:ReleaseRelationshipType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the relationship between the two Releases.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the related Release was or will be first made available for Usage in its current form, whether for physical or electronic/online distribution (in ISO 8601:2004 format: YYYY-MM-DD).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="OriginalReleaseDate" minOccurs="0" type="ern:EventDate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Date and Place of the Event in which the collection of tracks for the Release (e.g. the equivalent physical album on vinyl) 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 Language and script for the Elements of the ReleatedRelease as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ReleaseCollectionReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ReleaseCollectionReference.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ern:ddex_LocalCollectionAnchorReference">
            <xs:attribute name="ReleaseResourceType" type="avs:ReleaseResourceType">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Type of Collection in the context of a Release. 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="ReleaseCollectionReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a list of 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 Collections (typically Chapters).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseCollectionReference"
                     maxOccurs="unbounded"
                     type="ern:ReleaseCollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a ReleaseCollectionReference for a Collection (specific to this Message). The referenced Collection has to be of CollectionType Series, Season or Episode.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ReleaseId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ReleaseId. If available, a GRid should always to be used. If the Release contains only one SoundRecording, the ISRC of the SoundRecording may be used instead. If the Release is an abstraction of a complete PhysicalProduct (such as a CD Album), the ICPN of the 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 GRid identifying the Release. This is the preferred Element and is mandatory if a GRid is available. A 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 ISRC (International Standard Recording Code as defined in  ISO 3901) used as proxy for identification of the Release. Only applicable when the Release only contains one SoundRecording or one MusicalWorkVideo. An 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="ern:ICPN">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the ICPN used as proxy for identification of the Release. Only applicable when the Release is an abstraction of a complete PhysicalProduct. An ICPN comprises 12 or 13 digits, depending whether it is an EAN (13) or a UPC (12).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CatalogNumber" minOccurs="0" type="ern:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CatalogNumber of the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this 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 Composite containing details of a ReleaseRelationshipType, e.g. between an AudioClipRelease and a VideoClipRelease.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ReleaseRelationshipType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ReleaseRelationshipType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ReleaseRelationshipType. 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="ReleaseResourceReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ReleaseResourceReference.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="ern:ddex_LocalResourceAnchorReference">
            <xs:attribute name="ReleaseResourceType" type="avs:ReleaseResourceType">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Type of Resource in the context of a Release. 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="ReleaseResourceReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a list of ReleaseResourceReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseResourceReference"
                     maxOccurs="unbounded"
                     type="ern:ReleaseResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a Reference for a Resource (specific to this Message). The LocalAnchorReference in this Composite is a xs:string starting with the letter A.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ReleaseSummaryDetailsByTerritory">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing summary details of Descriptors and other attributes of a Release which may vary according to Territory of Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the ReleaseSummaryDetailsByTerritory apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the ReleaseSummaryDetailsByTerritory do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="DisplayArtistName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name to be used by a DSP when presenting Artist details of the Release to a Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LabelName"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:LabelName">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name of the Label for the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsAgreementId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a License, Claim, RightShare or contract for the MusicalWork(s) used in the Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the ReleaseSummaryDetailsByTerritory as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="ReleaseType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ReleaseType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ReleaseType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ReleaseType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ReleaseType. 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="ResourceContainedResourceReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ResourceContainedResourceReference for the case where one Resource contains another one.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ResourceContainedResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a Resource (specific to this Message). This is a 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 Duration of the Resource that has been used in a specified context (this may be less than the total Duration of the 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 Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Purpose" minOccurs="0" type="ern:Purpose">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the 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 Composite containing details of one or more ResourceContainedResourceReferences. </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ResourceContainedResourceReference"
                     maxOccurs="unbounded"
                     type="ern:ResourceContainedResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ResourceContainedResourceReference.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ResourceContributorRole">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ResourceContributorRole. Note: This can be used in a DdexMessage in relation to any Work, Performance or Fixation any of which may form the whole or part of the Resource itself.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ResourceContributorRole">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ResourceContributorRole. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ResourceContributorRole. 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="ResourceGroupContentItem">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Resource which is a ContentItem of a ResourceGroup.</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 ContentItem among all Resources within this ResourceGroup. This is analogous to the Track number on a SoundCarrier. Not all ResourceGroups necessarily have SequenceNumbers (it is most applicable to SoundRecordings and MusicalWorkVideos).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SequenceSubNumber" minOccurs="0" type="xs:integer">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The SequenceNumber within the SequenceNumber. Example: if a Track is subdivided into several numbered sections, these are numbered with a SequenceSubNumber. The SequenceSubNumber is unique within its SequenceNumber.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ResourceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the Type of the ContentItem.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseResourceReference" type="ern:ReleaseResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a ReleaseResourceReference for the ContentItem (specific to this Message). The LocalAnchorReference in this Composite is a xs:string starting with the letter A.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LinkedReleaseResourceReference"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:LinkedReleaseResourceReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ReleaseResourceReference (specific to this Message) for a Resource which is linked to this ContentItem. Example: an Image, Text or NonMusicalWorkVideo associated with a SoundRecording. This LocalAnchorReference is a xs:string starting with the letter A.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="ResourceGroupContentItemReleaseReference">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of a Release which has the same content as the ResourceGroupContentItem. This is a 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:element name="ReleaseId" type="ern:ReleaseId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of ReleaseIds of a Release which has the same content as the ResourceGroupContentItem. If available, a GRid has to be used. If the Release contains only one SoundRecording, the ISRC of the SoundRecording may be used instead. If the Release is an abstraction of a complete PhysicalProduct (such as a CD Album), the ICPN of the PhysicalProduct may be used instead.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="Duration" minOccurs="0" type="xs:duration">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Duration of the ContentItem featured, if it is a SoundRecording or Video (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). This Duration may be less than the normal Duration of the ContentItem, if only a part of it is included.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsHiddenResource" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether a Resource in a Release is hidden in some way from the Consumer (=True) or not (=False). If this Element is not provided, it is assumed that this is False.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsBonusResource" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether a Resource in a Release is additional to those on the original Release of which this is a Version (=True) or not (=False). If this Element is not provided, it is assumed that this is False.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="IsInstantGratificationResource"
                     minOccurs="0"
                     type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether a Resource in a Release may be made available to consumers despite the distribution of the containing Release not having been permitted (=True) or not (=False). If this Element is not provided, it is assumed that this is False.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ResourceGroupResourceReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a list of ResourceGroupResourceReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ResourceGroupResourceReference" maxOccurs="unbounded">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a Resource (specific to this Message). This is a 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="ResourceMusicalWorkReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a 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 MusicalWork in a group of MusicalWorks within a Medley, SoundRecording or other 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 Duration of the MusicalWork that has been used in a specified context (this may be less than the total Duration of the 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 Flag indicating whether the MusicalWork is a Fragment (=True) or not (=False).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ResourceMusicalWorkReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a MusicalWork (specific to this Message). This is a 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 Composite containing a list of ResourceMusicalWorkReferences.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ResourceMusicalWorkReference"
                     maxOccurs="unbounded"
                     type="ern:ResourceMusicalWorkReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a ResourceMusicalWorkReference for a MusicalWork (specific to this Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ResourceOmissionReason">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ResourceOmissionReason.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ResourceOmissionReason">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ResourceOmissionReason. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ResourceOmissionReason. 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="ResourceType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a ResourceType. For example a SoundRecording of a Performance of a MusicalWork or an Image of an Artist.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:ResourceType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the ResourceType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the ResourceType. 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="RightShare">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a RightShare.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="RightShareId" minOccurs="0" type="ern:RightsAgreementId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers for the RightShare.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightShareReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Identifier (specific to the Message) of the RightShare within the Release which contains it. This is a 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="ern:RightShareCreationReferenceList">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of one or more Creations contained in the RightShare.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the RightShare applies. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the RightShare does not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="RightsType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:RightsType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of Right covered by the RightShare. One of the Elements RightsType and UseType must be present. The RightsType is defined according to the jurisdiction of the Territory indicated in the TerritoryCode XmlAttribute.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UseType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:UseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a nature of a Service, or a Release, as used by a Consumer. One of the Elements RightsType and UseType must be present.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserInterfaceType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:UserInterfaceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a physical interface by which a Consumer uses a Service or Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DistributionChannelType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DistributionChannelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a distribution channel used to disseminate a Service or Release to a Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CarrierType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CarrierType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Carrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CommercialModelType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CommercialModelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the fundamental business model which applies (e.g. SubscriptionModel and PayAsYouGoModel). The CommercialModelType indicates how the Consumer pays for the Service or Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="MusicalWorkRightsClaimType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="avs:MusicalWorkRightsClaimType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of the RightsClaim related to a MusicalWork.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsController"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:RightsController">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a RightsController of Rights in a Creation.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ValidityPeriod" minOccurs="0" type="ern:Period">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details about the Period of Time for which the RightShare is valid.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice>
            <xs:element name="RightShareUnknown" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether the RightSharePercentage is unknown (=True) or not (=False).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="RightSharePercentage" minOccurs="0" type="xs:decimal">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The share of the licensed Rights owned by the RightsController. RightShare information is given as a xs:decimal value with up to 6 digits (e.g. '12.5' represents 12.5%).</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="TariffReference" minOccurs="0" type="ern:TariffReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Reference to a TextDocument containing details of a Tariff (in the form of an Identifier, Name or Description) that is to be applied to the RightShare.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="LicenseStatus" minOccurs="0" type="avs:LicenseStatus">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The legal status of a License for the RightShare.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="HasFirstLicenseRefusal" minOccurs="0" type="xs:boolean">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The Flag indicating whether a RightsController retains the right of refusal regarding the granting of the first licence for creating a SoundRecording of a Musical 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 Language and script for the Elements of the RightShare as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="RightShareCreationReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A 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 Reference for a Work (specific to this Message) that is part of the RightShare. This is a 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 Reference for a Resource (specific to this Message) that is part of the RightShare. This is a LocalResourceAnchorReference starting with the letter A. The RightShare covers the 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 Reference for a Release (specific to this Message) that is part of the RightShare. This is a LocalReleaseAnchorReference starting with the letter R. The RightShare covers the 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 Composite containing details of Identifiers of a License, Claim, 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 MusicalWork License Identifier identifying a License. If the Composite is meant to describe a Claim, RightShare or contract, then the License relates to that Claim, RightShare or contract. A 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="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the License, Claim, RightShare or contract.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="RightsClaimPolicy">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a rights claim policy.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="Condition" type="ern:Condition">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of conditions.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="RightsClaimPolicyType" type="avs:RightsClaimPolicyType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of rights claim policy.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="RightsController">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a RightsController. RightsControllers are typicallydescribed by Name, Identifier and role(s).</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="PartyId" maxOccurs="unbounded" type="ern:PartyId">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:sequence>
               <xs:element name="PartyName" maxOccurs="unbounded" type="ern:PartyName">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyName(s).</xs:documentation>
                  </xs:annotation>
               </xs:element>
               <xs:element name="PartyId"
                           minOccurs="0"
                           maxOccurs="unbounded"
                           type="ern:PartyId">
                  <xs:annotation>
                     <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for the Party. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
                  </xs:annotation>
               </xs:element>
            </xs:sequence>
         </xs:choice>
         <xs:element name="RightsControllerRole"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="avs:RightsControllerRole">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A role that describes the Party involved in the administration of Rights.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:choice minOccurs="0">
            <xs:element name="RightShareUnknown" type="xs:boolean">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Flag indicating whether the RightSharePercentage is unknown (=True) or not (=False).</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="RightSharePercentage" type="xs:decimal">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The share of the licensed Rights owned by the RightsController. RightShare information is given as a xs:decimal value with up to 6 digits (e.g. '12.5' represents 12.5%). If no information is given, 100% is assumed.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="RightsControllerType"
                     minOccurs="0"
                     type="avs:RightsControllerType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A type of the RightsController.</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 RightsController in a group of RightsControllers. This is represented in an XML schema as an XML Attribute. </xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="RightsType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a RightsType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:RightsCoverage">
            <xs:attribute name="TerritoryCode" use="required">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the RightsType applies. The RightsType is defined according to the jurisdiction of this Territory. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the RightsType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the RightsType. 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="SalesReportingProxyReleaseId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a SalesReportingProxyReleaseId.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ReleaseId" type="ern:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ReleaseIds. If available, a GRid should always be used.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Reason" minOccurs="0" type="ern:Reason">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the textual Description of the reason for the Identifier being used as a proxy.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReasonType" type="ern:ReasonType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A 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 Composite containing a SamplingRate and a UnitOfMeasure.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="xs:decimal">
            <xs:attribute name="UnitOfMeasure" type="avs:UnitOfFrequency">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The UnitOfMeasure of the SamplingRate. 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="SheetMusicCodecType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a SheetMusicCodecType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:SheetMusicCodecType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Identifier of the Version of the SheetMusicCodecType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the SheetMusicCodecType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the SheetMusicCodecType. 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="SheetMusicId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a SheetMusic.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISMN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ISMN (International Standard Music Number defined in ISO 10957) for the SheetMusic. An ISMN is a thirteen-digit number. Pre-2008 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="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the SheetMusic.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this 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 Composite containing details of a SheetMusicType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:SheetMusicType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the SheetMusicType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the SheetMusicType. 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="SocietyAffiliation">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a society affiliation.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:choice>
            <xs:element name="TerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the affiliation details apply. Either this Element or ExcludedTerritory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard. </xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="ExcludedTerritoryCode"
                        maxOccurs="unbounded"
                        type="ern:CurrentTerritoryCode">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Territory to which the affiliation details do not apply. Either this Element or Territory shall be present, but not both. The use of ISO TerritoryCodes (or the term 'Worldwide”) is strongly encouraged; TIS TerritoryCodes should only be used if both MessageSender and MessageRecipient are familiar with this standard.</xs:documentation>
               </xs:annotation>
            </xs:element>
         </xs:choice>
         <xs:element name="MusicRightsSociety" type="ern:PartyDescriptor">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicRightsSociety.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="SoftwareId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a Software.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ProprietaryId" maxOccurs="unbounded" type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the Software.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this 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 Composite containing details of a SoftwareType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:SoftwareType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the SoftwareType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the SoftwareType. 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="SoundProcessorType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a SoundProcessorType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:SoundProcessorType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Identifier of the Version of the SoundProcessorType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the SoundProcessorType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the SoundProcessorType. 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="SoundRecordingCollectionReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Collection in a group of Collections within a Medley, SoundRecording or other Collection.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundRecordingCollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a Collection (specific to this Message). This is a LocalCollectionAnchorReference starting with the letter X. The referenced Collection has to be of CollectionType Series, Season or 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 Creation, measured from the start of the Resource from which the 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 Duration of the use of the Creation that is referenced in the 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 Creation, measured from the start of the Resource from which the 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="avs:ReleaseResourceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of Collection in the context of a Video. This is represented in an XML schema as an XML Attribute.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="SoundRecordingCollectionReferenceList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a list of 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 Collections (typically Chapters).</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SoundRecordingCollectionReference"
                     maxOccurs="unbounded"
                     type="ern:SoundRecordingCollectionReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing a SoundRecordingCollectionReference for a Collection (specific to this Message).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="SoundRecordingId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of SoundRecordingIds.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISRC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ISRC (International Standard Recording Code as defined in  ISO 3901) for the SoundRecording. An 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="ern:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CatalogNumber of the SoundRecording.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the 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 Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this 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 Composite containing details of a SoundRecordingType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:SoundRecordingType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the SoundRecordingType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the SoundRecordingType. 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="SubTitle">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a SubTitle, including Titles of Versions used to differentiate different versions of the same Title, as required by the GRid and ISRC 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 Language and script of the SubTitle as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="Synopsis">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Language and script of the Synopsis as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="TariffReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Reference to a TextDocument containing details of a 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 Language and script of the TariffReference (and the TariffSubReference if applicable) as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="TariffSubReference" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Reference to a TextDocument containing more specific details of a Tariff. 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="TechnicalInstantiation">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing technical details of a Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="DrmEnforcementType"
                     minOccurs="0"
                     type="avs:DrmEnforcementType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of DRM enforcement.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="VideoDefinitionType"
                     minOccurs="0"
                     type="avs:VideoDefinitionType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of resolution (or definition) in which a Video is provided.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CodingType" minOccurs="0" type="avs:CodingType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Type of coding used to encode a Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="BitRate" minOccurs="0" type="ern:BitRate">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the BitRate for the audio data and a UnitOfMeasure (the default is kbps).</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="TextCodecType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a TextCodecType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:TextCodecType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Identifier of the Version of the TextCodecType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the TextCodecType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the TextCodecType. 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="TextId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a Text.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISBN" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ISBN (International Standard Book Number defined in ISO 2108) for the Text. An ISBN is a 13-digit number. Pre-2007, 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 ISSN (International Standard Serial Number defined in ISO 3297) identifying the Text. An 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 SICI (Serial Item and Contribution Identifier defined in ANSI/NISO Z39.56-199)  for the Text.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the 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 Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this 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 Composite containing details of a TextType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:TextType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the TextType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the TextType. 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="Title">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a Title.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="TitleText" type="ern:TitleText">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the text of the Title.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="SubTitle"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:TypedSubTitle">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a SubTitle of the Title, including Titles of Versions used to differentiate different versions of the same Title, as required by the GRid and ISRC ReferenceDescriptiveMetadataSets.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the Title as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
      <xs:attribute name="TitleType" type="avs:TitleType">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">A Type of the Title which defines its origin or the function it fulfils in relation to a Creation. Note: A Title may fulfil more than one role. Example: 'Help' may be both the OriginalTitle and the DisplayTitle for the well-known Beatles song. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:complexType name="TitleText">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Language and script of the TitleText as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="TypedSubTitle">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a SubTitle, including Titles of Versions used to differentiate different versions of the same Title, as required by the GRid and ISRC 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 Language and script of the SubTitle as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="SubTitleType" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A Type of the SubTitle which defines its origin or the function it fulfils. 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="Usage">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing Types and number of Usages of a Release.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="UseType" maxOccurs="unbounded" type="ern:UseType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a nature of a Service, or a Release, as used by a Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserInterfaceType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:UserInterfaceType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a physical interface by which a Consumer is intended to use a Service or Release.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="DistributionChannelType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:DistributionChannelType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a distribution channel intended to be used to disseminate a Service or Release to a Consumer.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="CarrierType"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:CarrierType">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a Carrier.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="TechnicalInstantiation"
                     minOccurs="0"
                     type="ern:TechnicalInstantiation">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing technical details of the 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 Release can be used under the terms of the Deal.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="UseType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a UseType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:UseType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the UseType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the UseType. 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="UserDefinedResourceId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a UserDefinedResource.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ProprietaryId" maxOccurs="unbounded" type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the UserDefinedResource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="IsReplaced" type="xs:boolean">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this 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 Composite containing details of a 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 Namespace of the UserDefinedResourceType. 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="UserDefinedValue">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a 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 Namespace of the UserDefinedValue. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Description" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A textual Description of the Type or function of the UserDefinedValue. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="LanguageAndScriptCode" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Language and script of the Description as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. 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="UserInterfaceType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a UserInterfaceType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:UserInterfaceType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the UserInterfaceType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the UserInterfaceType. 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="VideoCodecType">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a VideoCodecType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:VideoCodecType">
            <xs:attribute name="Version" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Identifier of the Version of the VideoCodecType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the VideoCodecType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the VideoCodecType. 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="VideoCueSheetReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing a VideoCueSheetReference.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="VideoCueSheetReference">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Reference for a CueSheet (specific to this Message). This is a 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="VideoId">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of Identifiers of a Video.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="ISRC" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">The ISRC (International Standard Recording Code as defined in  ISO 3901) for the Video. An 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 ISAN (International Standard Audiovisual Number as defined in ISO 15706) for the Video. An 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 Identifier of a International Standard Audiovisual Number as defined in ISO 15706-2) for the 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="ern:CatalogNumber">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the CatalogNumber of the Video.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ProprietaryId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ProprietaryId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a ProprietaryIdentifier of the 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 Flag indicating whether this Identifier is old and has been replaced by a new one (=True) or not (=False). The Flag may only be set to True when the new Identifier is also provided. If the Flag is not set, this 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 Composite containing details of a VideoType.</xs:documentation>
      </xs:annotation>
      <xs:simpleContent>
         <xs:extension base="avs:VideoType">
            <xs:attribute name="Namespace" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">The Namespace of the VideoType. This is represented in an XML schema as an XML Attribute.</xs:documentation>
               </xs:annotation>
            </xs:attribute>
            <xs:attribute name="UserDefinedValue" type="xs:string">
               <xs:annotation>
                  <xs:documentation source="ddex:Definition">A UserDefined value of the VideoType. 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="WebPage">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of a WebPage.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="PartyId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:PartyId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of the PartyId for a Party owning the WebPage. If no Namespace is given, the Identifier is a DdexPartyId (DPID). Note that DPIDs are not normally used to identify Artists, Producers or other Creators.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="ReleaseId"
                     minOccurs="0"
                     maxOccurs="unbounded"
                     type="ern:ReleaseId">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of ReleaseIds. If available, a GRid should always be used.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="PageName" minOccurs="0" type="ern:Name">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing the Name of the WebPage.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="URL" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A URL of the WebPage.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="UserName" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">An Identifier of a computer user who is granted maintenance access to the WebPage.</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="Password" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Password needed to grant a user maintenance access to the WebPage in combination with the UserName.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="WorkList">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A Composite containing details of one or more Works.</xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element name="MusicalWork" maxOccurs="unbounded" type="ern:MusicalWork">
            <xs:annotation>
               <xs:documentation source="ddex:Definition">A Composite containing details of a MusicalWork contained in a Resource.</xs:documentation>
            </xs:annotation>
         </xs:element>
      </xs:sequence>
      <xs:attribute name="LanguageAndScriptCode" type="xs:string">
         <xs:annotation>
            <xs:documentation source="ddex:Definition">The Language and script for the Elements of the WorkList as defined in IETF RfC 4646. The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute.</xs:documentation>
         </xs:annotation>
      </xs:attribute>
   </xs:complexType>
   <xs:simpleType name="ddex_LocalCollectionAnchorReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A LocalAnchorReference which acts as a reference to a local Identifier of a Collection. This LocalAnchorReference is a xs:string starting with the letter X.</xs:documentation>
      </xs:annotation>
      <xs:restriction base="xs:IDREF">
         <xs:pattern value="X[\d\-_a-zA-Z]+"/>
      </xs:restriction>
   </xs:simpleType>
   <xs:simpleType name="ddex_LocalResourceAnchorReference">
      <xs:annotation>
         <xs:documentation source="ddex:Definition">A LocalAnchorReference which acts as a reference to a local Identifier of a Resource. This LocalAnchorReference is a xs:string starting with the letter A.</xs:documentation>
      </xs:annotation>
      <xs:restriction base="xs:IDREF">
         <xs:pattern value="A[\d\-_a-zA-Z]+"/>
      </xs:restriction>
   </xs:simpleType>
</xs:schema>
