Template:— referencing_person_typical (ref_pers_typ) Date: 2008/03/05 21:18:03
Revision: 1.4
Template: referencing_person_typical

XML references to the Template

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

referencing_person_typical

Set up a hyperlink to the template definition.
<template_ref name="referencing_person_typical" capability="representing_person_organization_typical"/>

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="referencing_person_typical" capability="representing_person_organization_typical">
  <param name="type_of_pers_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="type_of_pers_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="referencing_person_typical">
  <param_in name="type_of_pers_class_name" value=""/>
  <param_in name="type_of_pers_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

referencing_person_typical
/referencing_person_typical(type_of_pers_class_name='', type_of_pers_ecl_id='urn:plcs:rdl:std')/

Path

Type_of_person

-- Mark the Type_of_person entity as
-- referable when this template is used by binding it to the reference
-- parameter type_of_pers
%^type_of_pers = Type_of_person%
Type_of_person.name = '/IGNORE'
Type_of_person.description = '/IGNORE'

-- provide the type of person by classifying the entity Type_of_person
/assigning_reference_data(
    items=^type_of_pers,
    class_name=@type_of_pers_class_name,
    ecl_id=@type_of_pers_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Type_of_person.name '/IGNORE'
Type_of_person.description '/IGNORE'

XML representation of path

<refpath
   template="referencing_person_typical">
   <instantiate
      entity="Type_of_person"
      context="">
      
   </instantiate>
   <comment>
      Mark the Type_of_person entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter type_of_pers
   </comment>
   <bind
      parameter="type_of_pers">
      <express_entity
         entity="Type_of_person"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Type_of_person"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Type_of_person"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      provide the type of person by classifying the entity Type_of_person
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^type_of_pers">
         
      </param_in>
      <param_in
         name="class_name"
         value="@type_of_pers_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@type_of_pers_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved