Element Description Closing Element
<<rs_name>>
<<rs_$abc>>
<<rs_name:step2>>
<<rs_name:step2down>>
Content between the opening element and closing
element is repeated whilst there is data associated with
“name” or the variable “abc”.
“stepN” indicates that the data (“name”) should be
iterated in steps of N size. When stepping is used, the
variables $i1, $i2,...$iN are created automatically so you
can reference the items available in each step.
“stepNdown” indicates that the data (“name”) should be
iterated in steps of N size and data should be presented in
a “down”-ward manner. Variables $i1, $i2,... $iN are
created automatically.
<<es_name>>
<<es_$abc>>
<<es_name:step2>>
<<es_>>
<<cr_name>>
<<cr_{expr}>>
<<cr_$abc>>
Include the following table rows depending on the value
associated with “name” or expression “expr” or the
variable “abc”.
<<er_name>>
<<er_{expr}>>
<<er_$abc>>
<<er_>>
<<rr_name>>
<<rr_$abc>>
<<rr_name:step2>>
<<rr_name:step2down>>
The rows between the opening element row and the
closing element row are repeated whilst there is data
associated with “name” or the variable “abc”.
“stepN” indicates that the data (“name”) should be
iterated in steps of N size. When stepping is used, the
variables $i1, $i2,...$iN are created automatically so you
can reference the items available in each step.
“stepNdown” indicates that the data (“name”) should be
iterated in steps of N size and data should be presented in
a “down”-ward manner. Variables $i1, $i2,... $iN are
created automatically.
<<er_name>>
<<er_$abc>>
<<er_>>
<<noTableRowAlternate>>
Disable automatic alternate-colouring of table rows. This
can appear in a table to disable for the table or appear in
the document body to disable for all following tables.
<<cc_name>>
<<cc_{expr}>>
<<cc_$abc>>
Include or exclude the table column containing this field
depending on the value associated with “name” or the
expression “expr” or the variable “abc”.
Image <<img_
MS Word: bookmarked
with label “img_name”
OpenOffice or
LibreOffice Writer:
image named “img_name”
(deprecated "bm_name")
Replace an image in the template with the image data
associated with “name” using the default scaling settings
(which is stretch).
The default setting can be changed by setting the
Docmosis property:
docmosis.analyzer.image.scaling.default to
fit or stretch.
See the Docmosis Developer's Reference for information
about setting properties.
Image <<imgstrech_
bookmarked with label
or named
“imgstretch_name”
Replace an image in the template with the image data
associated with “name” and stretch the new image to
match the template image placeholder.
Image <<imgfit_
bookmarked with label
or named “imgfit_name”
Replace an image in the template with the image data
associated with “name” and fit the new image into the
template image placeholder preserving the new image
aspect ratio.
<<ref:sub1.doc>>
Insert the template named “sub1.doc” at this location.
<<refLookup:name>>
Lookup “name” in the data to get the name of the
template to insert at this location.
<<html:name>>
Lookup “name” in the data and inject the data as HTML
content into the document at this location
Docmosis Template Guide Page 11
Version 4.2
Jul 2017