Re: [docbook-apps] How to arange the space of a "list" inside "para"

From
Bob Stayton <>
Date
2006-07-09T05:23:08+00:00
ID
006101c6a317$cd085b10$6700a8c0@totoro
Thread
Re: [docbook-apps] How to arange the space of a "list" inside "para"
The space before and after the list comes from the attribute-set named 
'list.block.spacing', which is defined in fo/param.xsl.  There is no 
compact version of that attribute-set like there is for list.item.spacing. 
But you can make the property value conditional with something like this in 
your customization layer:

<xsl:attribute-set name="list.block.spacing">
  <xsl:attribute name="space-before.optimum">
    <xsl:choose>
      <xsl:when test="@spacing = 'compact'">0em</xsl:when>
      <xsl:otherwise>1em</xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>
  <xsl:attribute name="space-before.maximum">
    <xsl:choose>
      <xsl:when test="@spacing = 'compact'">0em</xsl:when>
      <xsl:otherwise>1.2em</xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>
  <xsl:attribute name="space-before.minimum">
    <xsl:choose>
      <xsl:when test="@spacing = 'compact'">0em</xsl:when>
      <xsl:otherwise>0.8em</xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>
  etc.
</xsl:attribute-set>

The attribute-set is processed for each list, so the spacing attribute can 
be used to select the value.

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Euis Luhuanam" <>
To: "docbook-apps List" <>
Sent: Tuesday, July 04, 2006 8:57 PM
Subject: [docbook-apps] How to arange the space of a "list" inside "para"


> Hi,
>
> This following,
> = = = = = = = = = = = = = = = = = =
> <para>
> Para blah-blah:
> <orderedlist numeration="arabic" spacing="compact">
> <listitem><para>list 1</para></listitem>
> <listitem><para>list 2</para></listitem>
> <listitem><para>list 3</para></listitem>
> </orderedlist>
> </para>
> = = = = = = = = = = = = = = = = = =
>
> wil compact lines between "list 1", "list 2", etc; but
> not between "Para blah-blah" and "list 1".
>
> Any clue how to compact that space?
>
> regards,
>
> -- 
> EL6: Euis Luhuanam
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>