This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: <procedure> - Getting Extra Line in <step>
- From: Bob Stayton <bobs at caldera dot com>
- To: "Thacker, Brad" <Brad_Thacker at jdedwards dot com>,'Andy Jewell' <andy_jewell at fanniemae dot com>, David Cramer <dcramer at broadjump dot com>
- Cc: Docbook <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 25 Jul 2002 22:00:37 -0700
- Subject: Re: DOCBOOK-APPS: <procedure> - Getting Extra Line in <step>
- References: <7F1BE270B8EDD411A3A000508BAC87FF05E00988@cormails10.jdedwards.com>
On Thu, Jul 25, 2002 at 12:28:08PM -0600, Thacker, Brad wrote:
>
> From my experience, this appears to be a bug in the xsl stylesheets. I've
> seen this problem for over a year, and I've upgraded through three versions
> of docbook-xsl (I'm currently at 1.49). I was able to fix the problem by
> adding the following template to my customization layer:
>
>
> <xsl:template match="step/para[1]">
> <fo:block>
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
Your fix works perfectly fine if all your steps start with
para. That's probably most of them.
But if your step doesn't start with para, then it
removes the space above the first para that
follows the non-para. Your pattern is selecting
the first para child (even if it isn't the first
child of step). What you want it so select the first child if it
is a para. This pattern does that.
match="step/*[1][self::para]"
Of course, neither of these patches fix the extra space if
your step starts with something other than a para.
Regarding this extra vertical space in FOP, I'm not sure it
is a bug. It isn't there in PassiveTeX or XEP output. But
I'm not clear *why* it isn't there in the other two,
because they are all dealing with the same space-before
values on the para. FO is still kind of a black box to
me. You do what you have to do to get it working.
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com