The $headfoot mapping

The $headfoot mapping declares a set of custom actions that will be processed immediately before and after processing the fixed blocks for the current page. The $headfoot mapping is not associated with any fixed block content declared by the Layout Editor.

The following example shows how to use the $headfoot mapping to increment a page number, then assign a first page title header for use within a fixed block:

<set var="PageNo" value="{Pageno}+1" />
<switch>
<case var="Pageno" target="1" >
  <set var="TitleHead" string="Introduction" />
</case>
<case>
  <set var="TitleHead" string="" />
</case>
</switch>

[Warning] Warning

The $headfoot mapping must not attempt to emit content because it not associated with a page fixed block into which the content can be placed. The placement and appearance of content generated from this mapping is undefined.