DOCUMENTSTYLE

The following code defines the style of a document.

DOCUMENTSTYLE
 DOCUMENTBRAND <name of a brand>
 DOCUMENTTYPE <name of a document type>

This code must be placed after the PARAMETER keywords in the Master Template and before any other code. It defines the style for the entire document, for all supported output formats.

DOCUMENTBRAND
DOCUMENTBRAND is an expression that identifies the name of the Brand directory in KCM Designer from which the specified Document Type style definition is derived. The expression can either be a constant string, can refer to parameter values or fields in the Data Backbone. If an empty string is specified, the Document Type style definitions are controlled by the No Brand folder. For more information about the No Brand folder, see the Kofax Communications Manager Designer Help.
DOCUMENTTYPE
DOCUMENTTYPE is an expression that identifies the name of the Document Type folder within the Brand directory in KCM Designer from which the document style definitions are derived. The expression can either be a constant string, can refer to parameter values or fields in the Data Backbone. If an empty string is specified, the document style is taken directly from the specified Brand folder.

If the specified style definition cannot be found in the folder, the style definition is taken from the parental folder in KCM Designer. In case DOCUMENTSTYLE is omitted, or both the DOCUMENTBRAND and DOCUMENTTYPE parameters refer to empty strings, the document style is taken from the No Brand folder.

It is still possible to use the pagestyle and stylesheet functions in a Master Template to set the Word document style. These functions have more priority than the DOCUMENTSTYLE declaration, so that backward compatibility is maintained when DOCUMENTSTYLE is introduced into an existing Master Template. However, the pagestyle and stylesheet functions are Word-specific and have no effect on the chosen style for HTML output. In other words, the DOCUMENTSTYLE declaration must be used to control the styling of HTML output.