Template:— product_property_text (prod_prp_txt) Date: 2009/03/24 12:40:21
Revision: 1.20
Template: product_property_text

XML references to the Template

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

product_property_text

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="product_property_text" capability="assigning_product_properties">
  <param name="value">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="context">
    <param_value>Representation_context</param_value>
    <description></description>
  </param>
  <param name="context_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="property">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="product_property_text">
  <param_in name="value" value=""/>
  <param_in name="context" value="Representation_context"/>
  <param_in name="context_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="property" value=""/>
</template_example>

product_property_text
/product_property_text(value='', context='Representation_context', context_ecl_id='urn:plcs:rdl:std', property='')/

Path

-- Instantiate Property_representation entity
Property_representation

-- Bind the Property_representation entity to reference parameter ^prop_repr
%^prop_repr = Property_representation%

-- Set the Property_representation attributes role and description to be ignored
^prop_repr.role = '/IGNORE'
^prop_repr.description = '/IGNORE'

-- Instantiate template representing_text_property
/representing_text_property(
    value=@value,
    context=@context,
    context_ecl_id=@context_ecl_id)/

-- Bind the Representation entity instantiated in the template representing_text_property
-- (bound to the reference parameter representation in representing_text_value)
-- to ^representation in this template and assign Property_representation.rep to it
%^representation = $representing_text_property.representation%
^prop_repr.rep -> ^representation

-- Assign text value to property
^prop_repr.property -> @property
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Property_representation.role '/IGNORE'
Property_representation.description '/IGNORE'

XML representation of path

<refpath
   template="product_property_text">
   <comment>
      Instantiate Property_representation entity
   </comment>
   <instantiate
      entity="Property_representation"
      context="">
      
   </instantiate>
   <comment>
      Bind the Property_representation entity to reference parameter ^prop_repr
   </comment>
   <bind
      parameter="prop_repr">
      <express_entity
         entity="Property_representation"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the Property_representation attributes role and description to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="prop_repr.role">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="prop_repr.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Instantiate template representing_text_property
   </comment>
   <call_template
      name="representing_text_property"
      business_context="">
      <param_in
         name="value"
         value="@value">
         
      </param_in>
      <param_in
         name="context"
         value="@context">
         
      </param_in>
      <param_in
         name="context_ecl_id"
         value="@context_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Bind the Representation entity instantiated in the template representing_text_property
   </comment>
   <comment>
      (bound to the reference parameter representation in representing_text_value)
   </comment>
   <comment>
      to ^representation in this template and assign Property_representation.rep to it
   </comment>
   <bind
      parameter="representation">
      <template_instance
         template="representing_text_property"
         parameter="representation">
         
      </template_instance>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prop_repr.rep">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="representation">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Assign text value to property
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prop_repr.property">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="property">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved