[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]