Template:— location (locn)
Context:— UK_Defence
Date: 2009/04/17 10:01:11
Revision: 1.2
Template: location

XML references to the Template

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

location

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="location" context="UK_Defence" >
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID_source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="location_description">
    <param_value>Description?</param_value>
    <description></description>
  </param>
  <param name="alt_locn_rep">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="location">
  <param_in name="ID" value=""/>
  <param_in name="ID_source_organization" value=""/>
  <param_in name="location_description" value="Description?"/>
  <param_in name="alt_locn_rep" value=""/>
</template_example>

location
/location(ID='', ID_source_organization='', location_description='Description?', alt_locn_rep='')/

Path

%^location = Location%
Location.description = '/IGNORE'
Location.name = '/IGNORE'
Location.alternative_location_representations -> @alt_locn_rep
/identifier(
    ID=@ID,
    source_organization=@ID_source_organization,
    type='Location_identification_code',
    items=^location)/
/assigning_descriptor(
    descr=@location_description,
    class_name='Description',
    ecl_id='urn:plcs:rdl:uk_defence',
    is_assigned_to=^location)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Location.description '/IGNORE'
Location.name '/IGNORE'

XML representation of path

<refpath
   template="location">
   <bind
      parameter="location">
      <express_entity
         entity="Location"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Location"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Location"
            attribute="name"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Location"
            attribute="alternative_location_representations"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="alt_locn_rep">
            
         </param_in_ref>
      </source>
   </assign>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@ID">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@ID_source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Location_identification_code'">
         
      </param_in>
      <param_in
         name="items"
         value="^location">
         
      </param_in>
   </call_template>
   <call_template
      name="assigning_descriptor"
      business_context="UK_Defence">
      <param_in
         name="descr"
         value="@location_description">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^location">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved