[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Modify chapter.titlepage
Hello, 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" version="1.0"> <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:text>pt</xsl:text> </xsl:attribute> <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> </xsl:attribute-set> </xsl:stylesheet> This is my small docbook-example: <?xml version="1.0" encoding="iso-8859-1"?> <book> <chapter> <title>Stylesheet border test</title> <para> Lorem ipsum. </para> </chapter> </book> 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? Thanks. regards Marco
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]