Template:— representing_document_without_view (rep_doc_wout_view)
Context:— NDLO
Date: 2007/09/28 12:44:03
Revision: 1.2
Template: representing_document_without_view

XML references to the Template

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

representing_document_without_view

Set up a hyperlink to the template definition.
<template_ref name="representing_document_without_view" context="NDLO" />

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="representing_document_without_view" context="NDLO" >
  <param name="doc_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="doc_id_class_name">
    <param_value>Document_identification_code</param_value>
    <description></description>
  </param>
  <param name="doc_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="doc_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="doc_org_id_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="doc_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="doc_ver_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="doc_ver_id_class_name">
    <param_value>Version_identification_code</param_value>
    <description></description>
  </param>
  <param name="doc_ver_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="doc_ver_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="doc_ver_org_id_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="doc_ver_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_document_without_view">
  <param_in name="doc_id" value=""/>
  <param_in name="doc_id_class_name" value="Document_identification_code"/>
  <param_in name="doc_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="doc_org_id" value=""/>
  <param_in name="doc_org_id_class_name" value="Organization_name"/>
  <param_in name="doc_org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="doc_ver_id" value=""/>
  <param_in name="doc_ver_id_class_name" value="Version_identification_code"/>
  <param_in name="doc_ver_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="doc_ver_org_id" value=""/>
  <param_in name="doc_ver_org_id_class_name" value="Organization_name"/>
  <param_in name="doc_ver_org_id_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_document_without_view
/representing_document_without_view(doc_id='', doc_id_class_name='Document_identification_code', doc_id_ecl_id='urn:plcs:rdl:std', doc_org_id='', doc_org_id_class_name='Organization_name', doc_org_id_ecl_id='urn:plcs:rdl:std', doc_ver_id='', doc_ver_id_class_name='Version_identification_code', doc_ver_id_ecl_id='urn:plcs:rdl:std', doc_ver_org_id='', doc_ver_org_id_class_name='Organization_name', doc_ver_org_id_ecl_id='urn:plcs:rdl:std')/

Path

Document

-- Mark the Document entity as
-- referable when this template is used by binding it to the reference
-- parameter id_assgn
%^doc = Document%
^doc.id = '/IGNORE'
^doc.name = '/IGNORE'
^doc.description = '/IGNORE'

-- Identify the Document
/assigning_identification(
    items=^doc,
    id=@doc_id,
    id_class_name=@doc_id_class_name,
    id_ecl_id=@doc_id_ecl_id,
    org_id=@doc_org_id,
    org_id_class_name=@doc_org_id_class_name,
    org_id_ecl_id=@doc_org_id_ecl_id )/
Document_version

-- Mark the Document_version entity as
-- referable when this template is used by binding it to the reference
-- parameter ^doc_ver
%^doc_ver = Document_version%
^doc_ver.id = '/IGNORE'
^doc_ver.description = '/IGNORE'

-- Identify the Document_version
/assigning_identification(
    items=^doc_ver,
    id=@doc_ver_id,
    id_class_name=@doc_ver_id_class_name,
    id_ecl_id=@doc_ver_id_ecl_id,
    org_id=@doc_ver_org_id,
    org_id_class_name=@doc_ver_org_id_class_name,
    org_id_ecl_id=@doc_ver_org_id_ecl_id )/

-- Relate the document_version to the document
^doc_ver.of_product -> ^doc
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Document.id '/IGNORE' Product.id
Document.name '/IGNORE' Product.name
Document.description '/IGNORE' Product.description
Document_version.id '/IGNORE' Product_version.id
Document_version.description '/IGNORE' Product_version.description

XML representation of path

<refpath
   template="representing_document_without_view">
   <instantiate
      entity="Document"
      context="NDLO">
      
   </instantiate>
   <comment>
      Mark the Document entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter id_assgn
   </comment>
   <bind
      parameter="doc">
      <express_entity
         entity="Document"
         context="NDLO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="doc.id">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="doc.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="doc.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Identify the Document
   </comment>
   <call_template
      name="assigning_identification"
      business_context="NDLO">
      <param_in
         name="items"
         value="^doc">
         
      </param_in>
      <param_in
         name="id"
         value="@doc_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@doc_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@doc_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@doc_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@doc_org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@doc_org_id_ecl_id ">
         
      </param_in>
   </call_template>
   <instantiate
      entity="Document_version"
      context="NDLO">
      
   </instantiate>
   <comment>
      Mark the Document_version entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter ^doc_ver
   </comment>
   <bind
      parameter="doc_ver">
      <express_entity
         entity="Document_version"
         context="NDLO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="doc_ver.id">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="doc_ver.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Identify the Document_version
   </comment>
   <call_template
      name="assigning_identification"
      business_context="NDLO">
      <param_in
         name="items"
         value="^doc_ver">
         
      </param_in>
      <param_in
         name="id"
         value="@doc_ver_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@doc_ver_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@doc_ver_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@doc_ver_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@doc_ver_org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@doc_ver_org_id_ecl_id ">
         
      </param_in>
   </call_template>
   <comment>
      Relate the document_version to the document
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="doc_ver.of_product">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="doc">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved