Template:— physical_item_relationship (phys_itm_reln)
Context:— UK_Defence
Date: 2009/04/17 10:48:48
Revision: 1.2
Template: physical_item_relationship

XML references to the Template

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

physical_item_relationship

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="physical_item_relationship" context="UK_Defence" >
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="version">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="parent">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="child">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="physical_item_relationship">
  <param_in name="id" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="name" value=""/>
  <param_in name="version" value=""/>
  <param_in name="parent" value=""/>
  <param_in name="child" value=""/>
</template_example>

physical_item_relationship
/physical_item_relationship(id='', source_organization='', name='', version='', parent='', child='')/

Path

/representing_physical_structure(
    rel_type_name='Physical_element_usage',
    rel_ecl_id='urn:plcs:rdl:uk_defence',
    parent=@parent,
    child=@child)/

-- assign ref parameters
%^phys_relationship = $representing_physical_structure.usage%

-- id
/identifier(
    ID=@id,
    source_organization=@source_organization,
    type='Physical_element_usage_id_code',
    items=^phys_relationship)/

-- name
/identifier(
    ID=@name,
    source_organization=@source_organization,
    type='Physical_element_usage_name',
    items=^phys_relationship)/

-- version
/identifier(
    ID=@version,
    source_organization=@source_organization,
    type='Physical_element_usage_version_id_code',
    items=^phys_relationship)/

XML representation of path

<refpath
   template="physical_item_relationship">
   <call_template
      name="representing_physical_structure"
      business_context="UK_Defence">
      <param_in
         name="rel_type_name"
         value="'Physical_element_usage'">
         
      </param_in>
      <param_in
         name="rel_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="parent"
         value="@parent">
         
      </param_in>
      <param_in
         name="child"
         value="@child">
         
      </param_in>
   </call_template>
   <comment>
      assign ref parameters
   </comment>
   <bind
      parameter="phys_relationship">
      <template_instance
         template="representing_physical_structure"
         parameter="usage">
         
      </template_instance>
   </bind>
   <comment>
      id
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@id">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Physical_element_usage_id_code'">
         
      </param_in>
      <param_in
         name="items"
         value="^phys_relationship">
         
      </param_in>
   </call_template>
   <comment>
      name
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@name">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Physical_element_usage_name'">
         
      </param_in>
      <param_in
         name="items"
         value="^phys_relationship">
         
      </param_in>
   </call_template>
   <comment>
      version
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@version">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Physical_element_usage_version_id_code'">
         
      </param_in>
      <param_in
         name="items"
         value="^phys_relationship">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved