1 <refentry xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 version="5.0" xml:id="variablelist.as.table">
8 <refentrytitle>variablelist.as.table</refentrytitle>
9 <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
12 <refname>variablelist.as.table</refname>
13 <refpurpose>Format <tag>variablelist</tag>s as tables?</refpurpose>
17 <src:fragment xml:id="variablelist.as.table.frag">
18 <xsl:param name="variablelist.as.table" select="0"/>
22 <refsection><info><title>Description</title></info>
24 <para>If non-zero, <tag>variablelist</tag>s will be formatted as
25 tables. A processing instruction exists to specify a particular width for the
26 column containing the <tag>term</tag>s:
27 <tag class="xmlpi">dbhtml term-width=".25in"</tag></para>
29 <para>You can override this setting with a processing instruction as the
30 child of <tag>variablelist</tag>: <tag class="xmlpi">dbhtml
31 list-presentation="table"</tag> or <tag class="xmlpi">dbhtml
32 list-presentation="list"</tag>.</para>
34 <para>This parameter only applies to the HTML transformations. In the
35 FO case, proper list markup is robust enough to handle the formatting.
36 But see also <parameter>variablelist.as.blocks</parameter>.</para>
38 <programlisting> <variablelist>
39 <?dbhtml list-presentation="table"?>
40 <?dbhtml term-width="1.5in"?>
41 <?dbfo list-presentation="list"?>
42 <?dbfo term-width="1in"?>
44 <term>list</term>
47 Formatted as a table even if variablelist.as.table is set to 0.
51 </variablelist></programlisting>