Hi,
I'm not able to duplicate your problems with the
sample code you provided. I think the thing to watch for is the pageclass
value in your header.content template. I know the part element generates a
pageclass of 'titlepage', but your header.content doesn't mention that pageclass
so I don't see how you got a page number on it at all. I'm not clear what
your legalnotice pageclass is either.
You might open up your fo file and examine the
attributes of each fo:page-sequence starting element. The master-reference
attribute indicates the pageclass, the initial-page-number attribute indicates
the page count starting number, and the format attribute indicates the numbering
style. The starting number and format values are determined by the
templates named 'initial.page.number' and 'page.number.format', respectively, as
described here:
----- Original Message -----
Sent: Tuesday, December 30, 2008 9:40
AM
Subject: [docbook-apps] Page Numbering
wooes in the double-sided format (PDF)
Hi folks,
Currently, I am struggling with
Docbook's page numbering mechanism. My PDF document (created using
XSLTPROC and FOP 0.94) has a front coverpage that basically is a
customized titlepage-first page. After the coverpage comes a legal
notice, TOC and a Part. Here are the problems I have:
1) The
legal notice page and its subsequent blank page have a numbering (2 and
3 respectively). Then there is another blank page and a TOC page with
numbered with a Roman number (v).
2) The first page of Part
(where the part's title appears) is numbered with (1) and its subsequent
blank page has no numbering at all!!! :-( the next pages are
OK.
In my print.xsl I have the following
code: <!--Customizing header content for book
format--> <xsl:template name="header.content">
<xsl:param name="pageclass" select="''"/>
<xsl:param name="sequence" select="''"/> <xsl:param
name="position" select="''"/> <xsl:param
name="gentext-key"
select="''"/> .... .... <fo:block>
<!-- sequence can be odd, even, first, blank
--> <!-- position can be left, center, right
-->
<xsl:choose>
<xsl:when test="$double.sided!=0
and $pageclass='lot' and
$position='right'">
<fo:page-number/>
</xsl:when>
<xsl:when
test="$double.sided!=0 and $pageclass='lot' and
$sequence='blank' and
$position='left'">
<fo:page-number/>
</xsl:when>
<xsl:when
test="$double.sided!=0 and $pageclass='body' and $sequence='blank' and
$position='left'">
<fo:page-number/>
</xsl:when>
<xsl:when
test="$double.sided!=0 and $pageclass='body' and $sequence='even' and
$position='left'">
<fo:page-number/>
</xsl:when>
<xsl:when
test="$double.sided!=0 and $pageclass='body'and
($sequence='odd' or $sequence='first') and
$position='right'">
<fo:page-number/>
</xsl:when>
<xsl:when
test="$double.sided!=0 and $sequence='odd'
and
$position='right'">
<fo:retrieve-marker
retrieve-class-name="section.head.marker"
retrieve-position="first-including-carryover"
retrieve-boundary="page-sequence"/>
</xsl:when>
<xsl:when
test="$double.sided!=0 and $sequence='even' and
$position='left'">
<fo:retrieve-marker retrieve-class-name="section.head.marker"
retrieve-position="first-including-carryover"
retrieve-boundary="page-sequence"/>
</xsl:when>
<xsl:when
test="$double.sided=0 and $pageclass='body'
and $sequence !='first'
and
$position='center'">
<xsl:apply-templates select="."
mode="titleabbrev.markup"/>
</xsl:when> </xsl:choose>
</fo:block> </xsl:template>
Could anyone tell me
PLEASE, what have caused the above problems, and how to solve
them.
Thank you all in advance!!!
best
wishes, nancy
|
|