This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Glossary format in PDF


Thanks, Bob, for the explanation. After I read your mail I realized that 
my "book" contained <variablelist>s - formatted as block as well. But here 
the spacing was ok. So I compared what was going on in glossary.xsl 
compared to lists.xsl. 

The lists use the list.item.spacing attribute set. Using that for the 
glossary helped already. So I changed that in my glossary.xsl. The other 
point is, probably, a bug: the apply-templates within the 
"glossentry/glossdef" template did not specify mode="glossary.as.blocks". 
So the subsequent template which treats the first paragraph in the 
glossdef different did not come into effect.

In short: the attached patch (against version 1.61.2) makes the glossary 
look fine for me. Shall I post that as a suggestion on the SourceForge 
site ?

Ekkehard


*** glossary.xsl        Fri May 30 17:26:55 2003
--- glossary.xsl.orig   Sat Apr 12 23:07:06 2003
***************
*** 708,712 ****
    </xsl:variable>

!   <fo:block xsl:use-attribute-sets="list.item.spacing"
          keep-with-next.within-column="always"
          keep-together.within-column="always">
--- 708,712 ----
    </xsl:variable>

!   <fo:block xsl:use-attribute-sets="list.block.spacing"
          keep-with-next.within-column="always"
          keep-together.within-column="always">
***************
*** 802,806 ****

  <xsl:template match="glossentry/glossdef" mode="glossary.as.blocks">
!   <xsl:apply-templates select="*[local-name(.) != 'glossseealso']" 
mode="glossary.as.blocks"/>
    <xsl:if test="glossseealso">
      <fo:block>
--- 802,806 ----

  <xsl:template match="glossentry/glossdef" mode="glossary.as.blocks">
!   <xsl:apply-templates select="*[local-name(.) != 'glossseealso']"/>
    <xsl:if test="glossseealso">
      <fo:block>


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]