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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: DOCBOOK-APPS: Stylesheets 1.60.1 and FOP 0.20.4 or 0.20.5rc


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>




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


Powered by eList eXpress LLC