XmlApi - pdx:deleteTemplateBlock

pdx:deleteTemplateBlock

Deletes a block of content from the Word template.

Description

Element definition

The BLOCK variables are wrappers of content. They are used to remove unwanted parts of the document on "run time".

This method does exactly that: removes a block of content from the Word template that has been previously enclosed between BLOCK tags ($BLOCK_varName$).

Please refer to the Tutorial for a detailed description of the process.

Attributes and sub-elements

variableName

The name of the variable.

Code samples

Example #1

config.xml

content.xml

settings.xml

PHP code

The resulting Word document looks like: