Hi Arved-
It is with FOP-0.19 not the latest CVS. I am stuck
behind a firewall, so CVS is not really an option.
If you have multiple fo:page-sequences in a document
with either no intial-page-number attribute set, or
initial-page-number set to auto. The first page of
each page sequence starts at 1. But, the spec says
that the initial number should be one greater than the
last number of the preceding page-sequence.
I am using docbook-xsl 1.41 on a docbook book with
multiple chapters. This stylesheet creates a
different page-sequence for each chapter.
See the template for chapter below. It has an xsl:if
to reset the page numbering to 1 at the first chapter.
I tried FOP both with and without that xsl:if to make
sure the stylesheet wasn't setting the initial page to
1.
<xsl:template match="chapter">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="master-name">
<xsl:call-template name="select.pagemaster"/>
</xsl:variable>
<fo:page-sequence id="{$id}"
hyphenate="{$hyphenate}"
master-name="{$master-name}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<xsl:if test="not(preceding::chapter)">
<xsl:attribute name="initial-page-number">
1</xsl:attribute>
</xsl:if>
<xsl:if test="$double.sided != 0">
<xsl:attribute
name="force-page-count">end-on-even</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="."
mode="running.head.mode">
<xsl:with-param name="master-name"
select="$master-name"/>
</xsl:apply-templates>
<xsl:apply-templates select="."
mode="running.foot.mode">
<xsl:with-param name="master-name"
select="$master-name"/>
</xsl:apply-templates>
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="component.separator"/>
<xsl:call-template name="chapter.titlepage"/>
<xsl:if test="$generate.component.toc">
<xsl:call-template name="component.toc"/>
</xsl:if>
<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>
</xsl:template>
Don
--- Arved Sandstrom <[EMAIL PROTECTED]> wrote:
> At 10:17 AM 8/8/01 -0700, Don Wellington wrote:
> >3) Pagination accross multiple page sequences
> doesn't
> >work according to the xsl:fo spec. Something else
> I
> >want to look into fixing in FOP.
>
> Hi, Don
>
> Can you clarify? Are we talking about the latest
> CVS? Can you give me an
> example of where you think things are wrong?
>
> Thanks,
> Arved
>
> Fairly Senior Software Type
> e-plicity (http://www.e-plicity.com)
> Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
>
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]