Template:— zone_content (zn_cnt)
Context:— UK_Defence
Date: 2009/04/17 12:53:30
Revision: 1.3
Template: zone_content

XML references to the Template

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

zone_content

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="zone_content" context="UK_Defence" >
  <param name="content">
    <param_value>Physical_element_definition</param_value>
    <description></description>
  </param>
  <param name="type">
    <param_value>Zone_item</param_value>
    <description></description>
  </param>
  <param name="zone">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="zone_content">
  <param_in name="content" value="Physical_element_definition"/>
  <param_in name="type" value="Zone_item"/>
  <param_in name="zone" value=""/>
</template_example>

zone_content
/zone_content(content='Physical_element_definition', type='Zone_item', zone='')/

Path

%^zone_item = In_zone%
^zone_item.zone -> @zone
^zone_item.located_item -> @content
/assigning_reference_data(
    items=^zone_item,
    class_name=@type,
    ecl_id='urn:plcs:rdl:uk_defence')/

XML representation of path

<refpath
   template="zone_content">
   <bind
      parameter="zone_item">
      <express_entity
         entity="In_zone"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="zone_item.zone">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="zone">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="zone_item.located_item">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="content">
            
         </param_in_ref>
      </source>
   </assign>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^zone_item">
         
      </param_in>
      <param_in
         name="class_name"
         value="@type">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved