« Return to Thread: header & footer in custom title page

Re: header & footer in custom title page

by spr :: Rate this Message:

Reply to Author | View in Thread

Bob,

1) I create extra page by custom spec based on "fo/titlepage.templates.xml"

    <t:titlepage
      t:element = "readme"
      t:wrapper = "fo:block">
    ...
    ...
    </t:titlepage>

2) Also updated the sequence to include:

  <xsl:call-template
    name = "page.sequence">

    <xsl:with-param
      name    = "master-reference"
      select  = "$titlepage-master-reference" />

    <xsl:with-param
      name    = "content">
      <fo:block id="r-{$id}">
        <xsl:call-template
          name    = "readme.titlepage" />
      </fo:block>
    </xsl:with-param>

  </xsl:call-template>

~spr

Bob Stayton wrote:
Can you provide some more information about how you are creating your extra
pages?  Are you creating a new page-sequence with page master-name
'titlepage'?  If so, I don't think there is enough information in the
context of the header/footer content templates to distinguish between them.
You might need to add a new fo:page-sequence-master with a different
master-name, and use that for your extra pages.  Then the test won't match
on 'titlepage' and you should get headers and footers.   You don't need to
add new fo:simple-page-masters, you can just reuse the existing ones for
titlepage but with a new master-name.  Put the declaration in a template
named 'user.pagemasters', and customize the template named
'select.user.pagemaster', as described here:

http://www.sagehill.net/docbookxsl/PageDesign.html

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
~spr

 « Return to Thread: header & footer in custom title page