This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Stylesheets 1.60.1 and FOP 0.20.4 or 0.20.5rc
- From: Martin Perina <martin dot perina at osu dot cz>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 29 Jan 2003 10:17:11 +0100
- Subject: DOCBOOK-APPS: Stylesheets 1.60.1 and FOP 0.20.4 or 0.20.5rc
- Organization:
Hello,
this stylesheet version play nice with FOP 0.20.4 and 0.20.5rc.
Thanks for changes:
1) usage of proportional-column-width() instead of percents
in page headers and footers
2) including patch for TOC lines
But one problem remains: page numbers for TOC are read only from
<fo:block> and not from <fo:page-sequence> (FOP bug). So that's
why parts, dedications, prefaces, chapters and appendixes don't
have a page number in TOC. But there's a simple solution:
For example for parts, the template should be changed from:
<xsl:template match="part">
...
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="part.titlepage"/>
<xsl:copy-of select="$additional.content"/>
</fo:flow>
...
</xsl:template>
to:
<xsl:template match="part">
...
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
<xsl:call-template name="part.titlepage"/>
</fo:block>
<xsl:copy-of select="$additional.content"/>
</fo:flow>
...
</xsl:template>
Would it be possible to include these customizations to
official stylesheet distribution? I know it's a HACK, but
FOP redesign won't be ready soon and FOP is, in my opinion,
the best open source formatter for PDF and PS.
Martin Perina <martin.perina@osu.cz>