Next / Previous / Contents / NM Tech homepage

11.6.4. variablelist: Variable list entry term

There are two ways to render DocBook's variablelist. The default is a two-column table, with the terms on the left and the definitions on the right. Our preference is the way HTML dl elements are rendered: with each term unindented, followed by the definition as an indented block. A single option, variablelist.as.blocks, selects the latter behavior.

zdp_fo.xsl
<!--variablelist.as.blocks: Definitions indented under terms-->
<xsl:param name="variablelist.as.blocks" select="1"></xsl:param>

Because sometimes the indentation doesn't really make the term stand out enough, we boldface the term.

zdp_fo.xsl
<!--Boldface the term in a varlistentry-->
<xsl:template match="d:varlistentry/d:term">
  <xsl:call-template name="inline.boldseq"/>
</xsl:template>