<inject> (Template Tag)


Description


This tag executes commands from the indicated definition at this point (see tag: import).

Symbol mapping can be useful at various places in the template and components.

For example, if you have a component that works with the symbol "this", you may need to map that symbol when invoking it.


Example


 <?xml version="1.0" encoding="utf-8"?>

 <assembly id="nxm.tests.basic.pl">

. . .

 <components>

   <import id="party_address" source="name_file_with_definition/address"></import>

. . .

   <section>

. . .

     <inject source="party_address" input_mapping="this=this.buyer" output_mapping="this=this.buyer"/>

     <inject source="party_address" input_mapping="this=this.seller" output_mapping="this=this.seller"/>

. . .

   </section>

 </components>

. . .

 </assembly>


Attributes



Attribute

Description

source

The name of the source definition

input_mapping


output_mapping




Child elements permitted


No child elements are permitted.