Set up headers that include boilerplate text

Set up a header to include boilerplate text, such as "Table of Contents" or "Index."

From your template specification, you know that the headers on the toc-odd and index-odd pages should include boilerplate text along with the external file.

  1. Find the following template in your copy of static-content.xsl.
    <xsl:template name="insertTocOddHeader">
      <fo:static-content flow-name="odd-toc-header">
        <fo:block xsl:use-attribute-sets="__toc__odd__header">
          <xsl:call-template name="getVariable">
            <xsl:with-param name="id" select="'Toc odd header'"/>
            <xsl:with-param name="params">
              <prodname> <xsl:value-of select="$productName"/> </prodname> <heading> <fo:inline xsl:use-attribute-sets="__body__odd__header__heading"> ...