[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Formatting <variablelist>
Hi,
The term element is handled by a simple template,
but it doesn't have an attribute-set of its own. You can customize this
template from fo/lists.xsl to do whatever you like:
<xsl:template
match="varlistentry/term">
<fo:inline> <xsl:call-template name="simple.xlink"> <xsl:with-param name="content"> <xsl:apply-templates/> </xsl:with-param> </xsl:call-template> </fo:inline> <xsl:choose> <xsl:when test="not(following-sibling::term)"/> <!-- do nothing --> <xsl:otherwise> <!-- * if we have multiple terms in the same varlistentry, generate --> <!-- * a separator (", " by default) and/or an additional line --> <!-- * break after each one except the last --> <fo:inline><xsl:value-of select="$variablelist.term.separator"/></fo:inline> <xsl:if test="not($variablelist.term.break.after = '0')"> <fo:block/> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template>
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]