<?xml version="1.0" encoding="UTF-8"?>

<!--

DRM Rights Expression Language V2.1.2 Document Type Definition
   version - 2.1.2
   date    - 31 May 2011

FILE INFORMATION

  OMA Permanent Document
    File: OMA-SUP-DTD_DRM_REL-V2_1_2-20110531-A
    Type: Text

  Public Reachable Information
    Path: http://www.openmobilealliance.org/tech/dtd
    Name: drm_rel_dtd-v2_1_2.dtd

NORMATIVE INFORMATION

  Information about this file can be found in the latest revision of 

    OMA-TS-DRM_REL-V2_1_1

  This is available at http://www.openmobilealliance.org/

  Send comments to technical-comments@mail.openmobilealliance.org

CHANGE HISTORY

31052011 (DTD for the OMA DRM v2.1.2) 

LEGAL DISCLAIMER


  Use of this document is subject to all of the terms and conditions
  of the Use Agreement located at
  http://www.openmobilealliance.org/UseAgreement.html,
  provided, however, that section (d) under "Documents - Terms 
  of Use" which states, "no modifications are made to such 
  Documents" does not apply to your use.

  The Open Mobile Alliance authorizes you to copy this document, 
  provided that you retain all copyright and other proprietary  
  notices contained in the original materials on any copies of the 
  materials and  that you comply strictly with these terms. This 
  copyright permission does not constitute an endorsement of the 
  products or services. The Open Mobile Alliance assumes no 
  responsibility for errors or omissions in this document.


  Each Open Mobile Alliance member has agreed to use reasonable
  endeavors to inform the Open Mobile Alliance in a timely manner of
  Essential IPR as it becomes aware that the Essential IPR is related
  to the prepared or published specification.  However, the members
  do not have an obligation to conduct IPR searches.  The declared
  Essential IPR is publicly available to members and non-members of
  the Open Mobile Alliance and may be found on the "OMA IPR
  Declarations" list at http://www.openmobilealliance.org/ipr.html.
  The Open Mobile Alliance has not conducted an independent IPR review
  of this document and the information contained herein, and makes no
  representations or warranties regarding third party IPR, including
  without limitation patents, copyrights or trade secret rights.  This
  document may contain inventions for which you must obtain licenses
  from third parties before making, using or selling the inventions.
  Defined terms above are set forth in the schedule to the Open Mobile
  Alliance Application Form.

  NO REPRESENTATIONS OR WARRANTIES (WHETHER EXPRESS OR IMPLIED) ARE
  MADE BY THE OPEN MOBILE ALLIANCE OR ANY OPEN MOBILE ALLIANCE MEMBER
  OR ITS AFFILIATES REGARDING ANY OF THE IPR'S REPRESENTED ON THE "OMA
  IPR DECLARATIONS" LIST, INCLUDING, BUT NOT LIMITED TO THE ACCURACY,
  COMPLETENESS, VALIDITY OR RELEVANCE OF THE INFORMATION OR WHETHER OR
  NOT SUCH RIGHTS ARE ESSENTIAL OR NON-ESSENTIAL.

  THE OPEN MOBILE ALLIANCE IS NOT LIABLE FOR AND HEREBY DISCLAIMS ANY
  DIRECT, INDIRECT, PUNITIVE, SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR
  EXEMPLARY DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OF
  DOCUMENTS AND THE INFORMATION CONTAINED IN THE DOCUMENTS.

  Copyright 2011 Open Mobile Alliance Ltd.  All Rights Reserved.
  Used with the permission of the Open Mobile Alliance Ltd. under the
  terms set forth above.

TYPICAL USAGE IN XML DOCUMENT

  <?xml version="1.0"?>
  <!DOCTYPE DRM-REL PUBLIC "-//OMA//DTD DRM-REL 2.1.2//EN"
            "http://www.openmobilealliance.org/tech/DTD/drm_rel_dtd-v2_1_2.dtd"
            [<?oma-drm-rel-ver supported-versions="2.1.2"?>]>
  <DRM-REL>
     ...
  </DRM-REL>

-->


<!ELEMENT o-ex:rights (o-ex:context, o-ex:agreement)>
<!ATTLIST o-ex:rights
	xmlns:o-ex CDATA #FIXED "http://odrl.net/1.1/ODRL-EX"
	xmlns:o-dd CDATA #FIXED "http://odrl.net/1.1/ODRL-DD"
	xmlns:oma-dd CDATA #FIXED "http://www.openmobilealliance.com/oma-dd"
	xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#"
	xmlns:xenc CDATA #FIXED "http://www.w3.org/2001/04/xmlenc#"
	o-ex:id ID #REQUIRED
>
<!ELEMENT o-ex:context (o-dd:version?, o-dd:uid*)>
<!ELEMENT o-dd:version (#PCDATA)>
<!ELEMENT o-dd:uid (#PCDATA)>
<!ELEMENT o-ex:agreement (o-ex:asset+, o-ex:permission*)>
<!ELEMENT o-ex:asset (o-ex:context?, o-ex:inherit?, o-ex:digest?, ds:KeyInfo?)>
<!ATTLIST o-ex:asset
   o-ex:id ID #IMPLIED
   o-ex:idref IDREF #IMPLIED
>
<!ELEMENT o-ex:inherit (o-ex:context)>
<!ELEMENT o-ex:digest (ds:DigestMethod, ds:DigestValue)>
<!ELEMENT ds:DigestMethod (#PCDATA)>
<!ATTLIST ds:DigestMethod
	Algorithm CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#sha1"
>
<!ELEMENT ds:DigestValue (#PCDATA)>
<!ELEMENT ds:KeyInfo (xenc:EncryptedKey?, ds:RetrievalMethod?)>
<!ELEMENT xenc:EncryptedKey (xenc:EncryptionMethod, ds:KeyInfo?, xenc:CipherData)>
<!ELEMENT xenc:EncryptionMethod (#PCDATA)>
<!ATTLIST xenc:EncryptionMethod
	Algorithm CDATA #FIXED "http://www.w3.org/2001/04/xmlenc#kw-aes128"
>
<!ELEMENT xenc:CipherData (xenc:CipherValue)>
<!ELEMENT xenc:CipherValue (#PCDATA)>
<!ELEMENT ds:RetrievalMethod (#PCDATA)>
<!ATTLIST ds:RetrievalMethod
	URI CDATA #REQUIRED
>
<!ELEMENT o-ex:permission (o-ex:constraint?, o-ex:asset*, o-dd:play?, o-dd:display?, o-dd:execute?, o-dd:print?, oma-dd:export?)>
<!ATTLIST o-ex:permission
	oma-dd:onExpiredURL CDATA #IMPLIED
>
<!ELEMENT o-dd:play (o-ex:constraint?, o-ex:requirement?)>
<!ELEMENT o-dd:display (o-ex:constraint?, o-ex:requirement?)>
<!ELEMENT o-dd:execute (o-ex:constraint?, o-ex:requirement?)>
<!ELEMENT o-dd:print (o-ex:constraint?, o-ex:requirement?)>
<!ELEMENT o-ex:constraint (o-dd:count?, oma-dd:timed-count?, o-dd:datetime?, o-dd:interval?, o-dd:accumulated?, o-dd:individual?, oma-dd:system*)>
<!ATTLIST o-ex:constraint
   o-ex:id ID #IMPLIED
>

<!ELEMENT o-dd:count (#PCDATA)>
<!ELEMENT oma-dd:timed-count (#PCDATA)>
<!ATTLIST oma-dd:timed-count
	oma-dd:timer CDATA #IMPLIED
>
<!ELEMENT o-dd:datetime (o-dd:start?, o-dd:end?)>
<!ELEMENT o-dd:start (#PCDATA)>
<!ELEMENT o-dd:end (#PCDATA)>
<!ELEMENT o-dd:interval (#PCDATA)>
<!ELEMENT o-dd:accumulated (#PCDATA)>
<!ELEMENT o-dd:individual (o-ex:context)>
<!ELEMENT oma-dd:export (o-ex:constraint, o-ex:requirement?)>
<!ATTLIST oma-dd:export
	oma-dd:mode (move | copy) #REQUIRED
	oma-dd:transcribe (true | false | 1 | 0) "false"
>
<!ELEMENT oma-dd:system (o-ex:context+)>
<!ELEMENT o-ex:requirement (o-dd:tracked?)>
<!ELEMENT o-dd:tracked EMPTY>
<!ATTLIST o-dd:tracked
	oma-dd:timed CDATA "0"
	oma-dd:contentAccessGranted (true | false | 1 | 0) "false"
>

