This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] lists not rendered correctly
- From: "Mauritz Jeanson" <mj at johanneberg dot com>
- To: "'Deepak Shrestha'" <d88pak at yahoo dot com>, "'Bob Stayton'" <bobs at sagehill dot net>, <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 5 Nov 2004 17:16:55 +0100
- Subject: RE: [docbook-apps] lists not rendered correctly
> -----Original Message-----
> From: Deepak Shrestha
> --- Bob Stayton <bobs@sagehill.net> wrote:
> > Are you using a customization file? If so, can you
> > post that?
>
> By the way I checked it with fo/docbook.xsl and got
> the output without problem. As you suspected, I tried
> to check customization layer (adding line by line and
> checking the output). I found that double spacing the
> paragraph in my customization layer seems to cause the
> problem. After I added the follwoing lines (as you
> suggested me before), I found the problem in list
> rendering.
> #######################################
> <xsl:template match="para[not(ancestor::footnote)]">
> <fo:block line-height="2.4">
> <xsl:apply-imports/>
> </fo:block>
> </xsl:template>
> #######################################
>
> Is it a bug in FOP?
No, I don't think it is a bug in FOP. The template sets line-height="2.4" on
*all* <para>s; the sole exception is footnotes. If you (for example) want
double line-height for block-level <para>s only, I suggest something like
this:
<xsl:template match="para[parent::section or parent::article]">
<fo:block line-height="2.4">
<xsl:apply-imports/>
</fo:block>
</xsl:template>
/MJ