variablelist.as.table.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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">
  7. <refmeta>
  8. <refentrytitle>variablelist.as.table</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>variablelist.as.table</refname>
  13. <refpurpose>Format <tag>variablelist</tag>s as tables?</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="variablelist.as.table.frag">
  17. <xsl:param name="variablelist.as.table" select="0"/>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>If non-zero, <tag>variablelist</tag>s will be formatted as
  22. tables. A processing instruction exists to specify a particular width for the
  23. column containing the <tag>term</tag>s:
  24. <tag class="xmlpi">dbhtml term-width=".25in"</tag></para>
  25. <para>You can override this setting with a processing instruction as the
  26. child of <tag>variablelist</tag>: <tag class="xmlpi">dbhtml
  27. list-presentation="table"</tag> or <tag class="xmlpi">dbhtml
  28. list-presentation="list"</tag>.</para>
  29. <para>This parameter only applies to the HTML transformations. In the
  30. FO case, proper list markup is robust enough to handle the formatting.
  31. But see also <parameter>variablelist.as.blocks</parameter>.</para>
  32. <programlisting> &lt;variablelist&gt;
  33. &lt;?dbhtml list-presentation="table"?&gt;
  34. &lt;?dbhtml term-width="1.5in"?&gt;
  35. &lt;?dbfo list-presentation="list"?&gt;
  36. &lt;?dbfo term-width="1in"?&gt;
  37. &lt;varlistentry&gt;
  38. &lt;term&gt;list&lt;/term&gt;
  39. &lt;listitem&gt;
  40. &lt;para&gt;
  41. Formatted as a table even if variablelist.as.table is set to 0.
  42. &lt;/para&gt;
  43. &lt;/listitem&gt;
  44. &lt;/varlistentry&gt;
  45. &lt;/variablelist&gt;</programlisting>
  46. </refsection>
  47. </refentry>