On Wed, Mar 23, 2011 at 7:00 AM, Vincent Hennebert <[email protected]> wrote:

> Try removing the .maximum components of space definitions inside the
> lists. That will prevent the content from stretching beyond the
> region-body.

That did work, thanks!

In case anyone finds this while working with DocBook, this is what I
added to my customization layer.

<xsl:template match="d:listitem/d:para">
  <xsl:variable name="keep.together">
    <xsl:call-template name="pi.dbfo_keep-together"/>
  </xsl:variable>
  <fo:block xsl:use-attribute-sets="my.list.para.spacing">
    <xsl:if test="$keep.together != ''">
      <xsl:attribute name="keep-together.within-column"><xsl:value-of
                      select="$keep.together"/></xsl:attribute>
    </xsl:if>
    <xsl:call-template name="anchor"/>
    <xsl:apply-templates/>
  </fo:block>
</xsl:template>

<xsl:attribute-set name="my.list.para.spacing">
  <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
  <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
  <!--<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>-->
</xsl:attribute-set>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to