OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Trying to get page numbers in header of 'first' pages in a book


We have a customization layer for printing PDF files that customizes the header and footer of our documents. It worked fine until I changed my document from an article to a book. Now, I cannot seem to include page numbers in the header-content of the first pages the pageclasses that are included in my book: table of contents (lot), chapters (body), appendix (back), index - basically everything except the book titlepage.

Below is the code snippet from my customization stylesheet:

 <xsl:template name="header.content">
  <xsl:param name="pageclass"></xsl:param>
  <xsl:param name="sequence"></xsl:param>
  <xsl:param name="position"></xsl:param>
  <xsl:param name="gentext-key"></xsl:
  <xsl:if test="$pageclass != 'titlepage'">
    <xsl:when test="(($sequence='first' and $pageclass!='index')
    or $pageclass='mybook-titlepage')">
    <xsl:when test="($sequence='odd' and $position='left') or
      ($sequence='even' and $position='right')"></xsl:when>
    <xsl:when test="($sequence='even' and $position='center')">
     <xsl:apply-templates select="." mode="title.markup"/>
    <xsl:when test="($sequence='odd' and $position='center')">
     <fo:retrieve-marker retrieve-class-name="section.head.marker"
<!-- note the following only works for the index first page ... -->
    <xsl:when test="($sequence='odd' and $position='right') or
      ($sequence='even' and $position='left') or
      ($sequence='first' and $pageclass='index' and $position='right') or
      ($sequence='first' and $pageclass='lot' and $position='right') or
      ($sequence='first' and $pageclass='body' and $position='right') or
      ($sequence='first' and $pageclass='back' and $position='right')">

Any guidance would be greatly appreciated ...

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]