Hi Cheri,
Add this to your attribute-set:

<xsl:attribute name="space-before.conditionality">retain<xsl:attribute>

By default in XSL-FO processing, a space-before property is ignored when an 
element's output block is first on a page.  That is so when a para starts on a 
new page, it doesn't space down unnecessarily before the para, ruining the 
alignment with the top margin.  So you have to tell it to retain the 
space-before regardless of the circumstances by using this attribute.

The old FOP didn't properly support "ignore-at-top" feature, but the new FOP 
does.

Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]


  ----- Original Message ----- 
  From: Dennison, Cheri 
  To: [email protected] 
  Sent: Wednesday, July 09, 2008 4:36 PM
  Subject: [docbook-apps] chapter.titlepage.recto.style: some attributes not 
working?


  I'm upgrading from FOP 0.20.5 to FOP 0.95 beta (and to the 1.74 DB 
stylesheets), and I've noticed that with the upgrade, the "space-before" 
attributes in my  chapter.titlepage.recto.style attribute-set override no 
longer do anything. The "space-after" ones still seem to be turned on and work 
fine. Below is the little chunk from my customization layer. Any idea why part 
of this attribute-set would no longer work?

   

  <xsl:attribute-set name="chapter.titlepage.recto.style">

   

      <xsl:attribute name="space-before.minimum">0.7em</xsl:attribute>

      <xsl:attribute name="space-before.optimum">4em</xsl:attribute>

      <xsl:attribute name="space-before.maximum">5em</xsl:attribute>

      <xsl:attribute name="space-after.minimum">1.2em</xsl:attribute>

      <xsl:attribute name="space-after.optimum">2em</xsl:attribute>

      <xsl:attribute name="space-after.maximum">3em</xsl:attribute>

    </xsl:attribute-set>

   

   

  Much thanks!

  cheri

  -- 
  Cheri Dennison / Technical Writer 
  AWS Platform Group 
  [EMAIL PROTECTED] 

   

Reply via email to