[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: HOWTO make terms in variablelists bold for docbook -> fo -> PDF?
Hello: I would like to make the terms show up in bold for all my variablelists. It seems the only way I can do that today is to override the standard template and add font-weight="bold" as below (no other changes): <!-- override the standard docbook rule for terms in variablelists --> <!-- because we want them to be bold --> <xsl:template match="varlistentry/term"> <fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline> <xsl:choose> <xsl:when test="position() = last()"/> <!-- 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> If there is not an easier way I have overlooked, can this be considered a feature request for a setting to do this? maybe something like: <xsl:attribute-set name="variablelist.term.properties"> <xsl:attribute name="font-weight">normal</xsl:attribute> ...etc.. </xsl:attribute-set> in param.xsl ? thanks in advance, --Craeg