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] | [List Home]

Subject: Re: [docbook-apps] Modify chapter.titlepage


I solved my problem last night - at least partially. My first approach 
modifying the chapter.titlepage template was not successful. I think I 
have to spend much more time to understand the whole customization process.

I get my desired block using a left border with a width of 13pt:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 

   <xsl:import href="docbook-xsl/fo/docbook.xsl"/>

   <xsl:param name="title.margin.left">0pt</xsl:param>
   <xsl:param name="body.start.indent" select="'0'" />

   <xsl:param name="fop.extensions" select="1" />
   <xsl:param name="draft.mode" select="'no'" />

   <xsl:param name="body.font.family" select="'Helvetica'" />

   <xsl:attribute-set name="component.title.properties">
     <xsl:attribute name="font-size">
       <xsl:value-of select="$body.font.master * 1.5"></xsl:value-of>
     <xsl:attribute name="color">white</xsl:attribute>
     <xsl:attribute name="background-color">#A09A98</xsl:attribute>
     <xsl:attribute name="padding-top">3.5pt</xsl:attribute>
     <xsl:attribute name="padding-bottom">1pt</xsl:attribute>
     <xsl:attribute name="padding-start">3pt</xsl:attribute>
     <xsl:attribute name="start-indent">13pt</xsl:attribute>
     <xsl:attribute name="border-left-width">10pt</xsl:attribute>
     <xsl:attribute name="border-left-style">solid</xsl:attribute>
     <xsl:attribute name="border-left-color">orange</xsl:attribute>

This is my small docbook-example:

<?xml version="1.0" encoding="iso-8859-1"?>

     <title>Stylesheet border test</title>
       Lorem ipsum.

The problem is, that the produced pdf looks good only at 100% in Acrobat 
Reader. If I zoom in, I can see that the border doesn't have the height 
as the heading text block has. While rendering the fo-file with FOP I 
get this error:

[ERROR] Error in start-indent property value '0': 
org.apache.fop.fo.expr.PropertyException: No conversion defined

Seems to be a bug in FOP, because XSLFormatter renders it correctly (and 
without errors).

Can anybody verify this?



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