loading table of contents...

2.8.1. org.docma.plugin.examples.ApplyTemplate

Arguments:
ALIAS
The alias name of the template node.
Description:
The content-node given by alias name ALIAS is used as a template. The transformation replaces the input-element by the content of the template, where the substring "$content" within the template is replaced by the inner content of the input-element and the substring "$title" is replaced by the value of the input-element's title attribute. If the input-element does not have a title attribute, then the substring "$title" is replaced by the empty string.
Note: If the template contains inline-inclusions (i.e. [#alias] or [##alias]), then these are resolved before the substrings "$content" and "$title" are replaced.
Example:
Given a style with ID notebox, that has following Auto-Format configuration:
    org.docma.plugin.examples.ApplyTemplate notebox_template 
If the content-node with alias name "notebox_template" has following content:
<table>
  <tr><td>Note: $title</td></tr>
  <tr><td>$content</td></tr>
</table>
then the XHTML content
<div class="notebox" title="Some title">
 The content of the block.
</div>
is rendered as
<table>
  <tr><td>Note: Some title</td></tr>
  <tr><td>The content of the block.</td></tr>
</table>