This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Stylesheets customizations to play nice with FOP


Hi all,

I've collected some customizations from various mails and
put them into one file (fop-common.xsl). When you import
this stylesheet along with standard fo/docbook.xsl, your
PDF output through FOP will be quite nice. I've tested it
with DocBook stylesheets 1.55 and FOP 0.24 and all elements,
that I need (TOC, SVG images, tables, czech TTF fonts), worked
fine.

But two problems remain:

1) Page headers and footers aren't centered. Sorry, I don't
   know how to fix it.

2) There is a problem with inline elements and monospace font.
   The font size this elements are always 0.9 * $body.font.master
   as defined in monospace.properties. It looks like a bug for me,
   so I have changed atribute-sets in fo/param.xsl to these:

     <xsl:attribute-set name="monospace.properties">
       <xsl:attribute name="font-family">
         <xsl:value-of select="$monospace.font.family"/>
       </xsl:attribute>
     </xsl:attribute-set>

     <xsl:attribute-set name="monospace.verbatim.properties"   
use-attribute-sets="verbatim.properties monospace.properties">
       <xsl:attribute name="text-align">start</xsl:attribute>
       <xsl:attribute name="font-size">
         <xsl:value-of select="$body.font.master * 0.9"/>
         <xsl:text>pt</xsl:text>
       </xsl:attribute>
     </xsl:attribute-set>

   


Martin Perina

Attachment: fop-common.xsl
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]