pdx:removeTemplateVariable

Removes a xmldocx placeholder variable from the Word document.

Description

Element definition

This element allows to remove an "unused" placeholder variable.

There are two options: just remove the placeholder variable ($type = 'inline') or remove the whole paragraph that contains it ($type = 'block').

Attributes and sub-elements

variableName

The name of the variable we want to remove.

removeType

It may be 'inline' if one wants just to remove the variable or 'block' (default value) if one wants also to remove the containing paragraph.

target

Possible values are: document (default value), header, footer, footnote, endnote or comment.

Code samples
#Example 1

config.xml

content.xml

settings.xml

The resulting Word document looks like: