OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

rights-examples message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: [rights-examples] ln001: use case with markup for review


There are two files below: ln001.xml, which implements the use case with
markup conforming to XrML 2.1 plus the extension that Thomas suggested in an
e-mail, and corePlusProp.xsd, which incorporates that new element into the
larger XrML schema. (Being an old SGML guy, I don't want any markup to leave
my machine until I've seen it validate.) The beginning and end of each of
the two files is identified with a comment. The two files are pretty short.

I'm going to post each of my examples like this as I finish the markup. If
there are no suggestions for improving the markup, I will see about posting
them on the RLTC's web site.

I want to see use cases plus markup from someone besides me posted!

Bob



<!-- beginning of ln001.xml -->

<r:license xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
           xmlns:dcx="http://www.snee.com/ns/dcx";
           xmlns:r="http://www.xrml.org/schema/2002/05/xrml2core";
           xmlns:proposed="urn:PROPOSED-FOR-RL"
           xsi:schemaLocation="urn:PROPOSED-FOR-RL corePlusProp.xsd"
           licenseId="ln001"
>

<!--

scenario ln001

This article and all of its components may be viewed by any customer until
February 1, 2003. From 2/2/03 to 5/1/03, only customers belonging to
customer
class"c10012" (e.g. who paid extra for a particular collection of services)
may view it. After 5/1/03, only accounts from customer class "c104033" may
view it.

STATUS: Done

-->

  <r:grant>

    <dcx:play/> <!-- "render the work in a transient form" i.e. read it -->

    <r:validityInterval> 
      <r:notAfter>2003-02-01T23:59:59</r:notAfter> 
    </r:validityInterval> 

  </r:grant>


  <r:grant>

    <r:forAll varName="c10012"> 
      <r:everyone>
         <proposed:principalClass ID="http://www.foo.com/ns/c10012"/> 
      </r:everyone>
    </r:forAll>

    <r:principal varRef="c10012"/> 

    <dcx:play/>

    <r:validityInterval> 
      <r:notBefore>2003-04-02T00:00:00</r:notBefore> 
      <r:notAfter>2003-05-01T23:59:59</r:notAfter> 
    </r:validityInterval> 

  </r:grant>


  <r:grant>

    <r:forAll varName="c104033"> 
      <r:everyone>
         <proposed:principalClass ID="http://www.foo.com/ns/c104033"/> 
      </r:everyone>
    </r:forAll>

    <r:principal varRef="c104033"/> 

    <dcx:play/>

    <r:validityInterval> 
      <r:notBefore>2003-05-01T00:00:00</r:notBefore> 
    </r:validityInterval> 

  </r:grant>


</r:license>

<!-- end of ln001.xml -->


<!--  Beginning of corePlusProp.xsd  -->

<!-- Following used for DTD-driven schema creation. -->
<!DOCTYPE xs:schema SYSTEM "\dat\xml\schemapt1.dtd">
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
           xmlns:r="http://www.xrml.org/schema/2002/05/xrml2core";
           targetNamespace="urn:PROPOSED-FOR-RL"
>

  <xs:import schemaLocation="xrml2core.xsd"
              namespace="http://www.xrml.org/schema/2002/05/xrml2core"/>

  <xs:element name="principalClass" substitutionGroup="r:propertyAbstract">

   <xs:complexType>
      <xs:annotation>
         <xs:documentation>Identifies a class of principals
         to whom rights are being granted.</xs:documentation>
      </xs:annotation>

      <xs:complexContent>
        <xs:extension base="r:PropertyAbstract">
          <xs:attribute name="ID" type="xs:anyURI"/>
        </xs:extension>
      </xs:complexContent>
   </xs:complexType>

  </xs:element>

</xs:schema>

<!--  end of corePlusProp.xsd  -->


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC