Template:— related_nato_specification (rel_nato_spec)
Context:— UK_Defence
Date: 2009/04/17 11:32:31
Revision: 1.3
Template: related_nato_specification

XML references to the Template

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

related_nato_specification

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="related_nato_specification" context="UK_Defence" >
  <param name="item_of_supply">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="nato_item_of_supply_specification">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="related_nato_specification">
  <param_in name="item_of_supply" value=""/>
  <param_in name="nato_item_of_supply_specification" value=""/>
</template_example>

related_nato_specification
/related_nato_specification(item_of_supply='', nato_item_of_supply_specification='')/

Path

-- Create the relationship entity
/representing_resource_item_relationship(
    class_name='Item_of_supply_to_nato_ios',
    ecl_id='urn:plcs:rdl:uk_defence')/
%^related_nato_specification = $representing_resource_item_relationship.res_item_rel%

-- Map the input parameters to those for rep_prom_usg, first is the top item
^related_nato_specification.related -> @nato_item_of_supply_specification
^related_nato_specification.relating -> @item_of_supply

XML representation of path

<refpath
   template="related_nato_specification">
   <comment>
      Create the relationship entity
   </comment>
   <call_template
      name="representing_resource_item_relationship"
      business_context="UK_Defence">
      <param_in
         name="class_name"
         value="'Item_of_supply_to_nato_ios'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
   <bind
      parameter="related_nato_specification">
      <template_instance
         template="representing_resource_item_relationship"
         parameter="res_item_rel">
         
      </template_instance>
   </bind>
   <comment>
      Map the input parameters to those for rep_prom_usg, first is the top item
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="related_nato_specification.related">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="nato_item_of_supply_specification">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="related_nato_specification.relating">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="item_of_supply">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved