OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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?


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 
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:when test="position() = last()"/> <!-- do nothing -->
    <!-- * 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 -->
    <xsl:if test="not($variablelist.term.break.after = '0')">

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>

in param.xsl ?

thanks in advance,


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]