Template:— skill (skill)
Context:— UK_Defence
Date: 2009/11/03 15:57:52
Revision: 1.4
Template: skill

XML references to the Template

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

skill

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="skill" context="UK_Defence" >
  <param name="name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="name_source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="description">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="skill">
  <param_in name="name" value=""/>
  <param_in name="name_source_organization" value=""/>
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="description" value=""/>
</template_example>

skill
/skill(name='', name_source_organization='', ID='', source_organization='', description='')/

Path

-- Type_of_person
Type_of_person
%^type_of_person = Type_of_person%

-- Type_of_person_definition
Type_of_person_definition
%^skill = Type_of_person_definition%
Type_of_person_definition.name = '/IGNORE'
Type_of_person_definition.description = '/IGNORE'
/identifier(
    ID=@ID,
    source_organization=@source_organization,
    type='Skill_identification_code',
    items=^skill)/
/identifier(
    ID=@name,
    source_organization=@name_source_organization,
    type='Skill_name',
    items=^skill)/
/assigning_descriptor(
    descr=@description,
    class_name='Description',
    ecl_id='urn:plcs:rdl:std',
    is_assigned_to=^skill)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Type_of_person_definition.name '/IGNORE'
Type_of_person_definition.description '/IGNORE'

XML representation of path

<refpath
   template="skill">
   <comment>
      Type_of_person
   </comment>
   <instantiate
      entity="Type_of_person"
      context="UK_Defence">
      
   </instantiate>
   <bind
      parameter="type_of_person">
      <express_entity
         entity="Type_of_person"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      Type_of_person_definition
   </comment>
   <instantiate
      entity="Type_of_person_definition"
      context="UK_Defence">
      
   </instantiate>
   <bind
      parameter="skill">
      <express_entity
         entity="Type_of_person_definition"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Type_of_person_definition"
            attribute="name"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Type_of_person_definition"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <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="'Skill_identification_code'">
         
      </param_in>
      <param_in
         name="items"
         value="^skill">
         
      </param_in>
   </call_template>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@name">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@name_source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Skill_name'">
         
      </param_in>
      <param_in
         name="items"
         value="^skill">
         
      </param_in>
   </call_template>
   <call_template
      name="assigning_descriptor"
      business_context="UK_Defence">
      <param_in
         name="descr"
         value="@description">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^skill">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved