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