Template:— representing_document_history (rep_doc_hist)
Capability:representing_documents
Date: 2009/03/18 11:47:46
Revision: 1.4
Template: representing_document_history

XML references to the Template

These can be cut and pasted into the XML as required.

representing_document_history

Set up a hyperlink to the template definition.
<template_ref name="representing_document_history" capability="representing_documents"/>

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_document_history" capability="representing_documents">
  <param name="relating_doc_version">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_doc_version">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="version_reln_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="version_reln_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_document_history">
  <param_in name="relating_doc_version" value=""/>
  <param_in name="related_doc_version" value=""/>
  <param_in name="version_reln_class_name" value=""/>
  <param_in name="version_reln_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_document_history
/representing_document_history(relating_doc_version='', related_doc_version='', version_reln_class_name='', version_reln_ecl_id='urn:plcs:rdl:std')/

Path

Product_version_relationship

-- Create the Product_version_relationship entity
-- Set the attributes
Product_version_relationship.relation_type = '/IGNORE'
Product_version_relationship.description = '/IGNORE'
Product_version_relationship.relating_version -> @relating_doc_version
Product_version_relationship.related_version -> @related_doc_version

-- provide the role of the relationship by classifying the file_relationship
/assigning_reference_data(
    items=Product_version_relationship,
    class_name=@version_reln_class_name,
    ecl_id=@version_reln_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Product_version_relationship.relation_type '/IGNORE'
Product_version_relationship.description '/IGNORE'

XML representation of path

<refpath
   template="representing_document_history">
   <instantiate
      entity="Product_version_relationship"
      context="">
      
   </instantiate>
   <comment>
      Create the Product_version_relationship entity
   </comment>
   <comment>
      Set the attributes
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_version_relationship"
            attribute="relation_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_version_relationship"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_version_relationship"
            attribute="relating_version"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="relating_doc_version">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_version_relationship"
            attribute="related_version"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_doc_version">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      provide the role of the relationship by classifying the file_relationship
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="Product_version_relationship">
         
      </param_in>
      <param_in
         name="class_name"
         value="@version_reln_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@version_reln_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved