variablelist.as.blocks.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.blocks">
  7. <refmeta>
  8. <refentrytitle>variablelist.as.blocks</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>variablelist.as.blocks</refname>
  13. <refpurpose>Format <tag>variablelist</tag>s lists as blocks?</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="variablelist.as.blocks.frag">
  17. <xsl:param name="variablelist.as.blocks" 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. blocks.</para>
  23. <para>If you have long terms, proper list markup in the FO case may produce
  24. unattractive lists. By setting this parameter, you can force the stylesheets
  25. to produce block markup instead of proper lists.</para>
  26. <para>You can override this setting with a processing instruction as the
  27. child of <tag>variablelist</tag>: <tag class="xmlpi">dbfo
  28. list-presentation="blocks"</tag> or <tag class="xmlpi">dbfo
  29. list-presentation="list"</tag>.</para>
  30. <para>When using <literal>list-presentation="list"</literal>,
  31. you can also control the amount of space used for the <tag>term</tag>s with
  32. the <tag class="xmlpi">dbfo term-width=".25in"</tag> processing instruction,
  33. the <tag class="attribute">termlength</tag> attribute on <tag>variablelist</tag>,
  34. or allow the stylesheets to attempt to calculate the amount of space to leave based on the
  35. number of letters in the longest term.
  36. </para>
  37. <programlisting> &lt;variablelist&gt;
  38. &lt;?dbfo list-presentation="list"?&gt;
  39. &lt;?dbfo term-width="1.5in"?&gt;
  40. &lt;?dbhtml list-presentation="table"?&gt;
  41. &lt;?dbhtml term-width="1.5in"?&gt;
  42. &lt;varlistentry&gt;
  43. &lt;term&gt;list&lt;/term&gt;
  44. &lt;listitem&gt;
  45. &lt;para&gt;
  46. Formatted as a list even if variablelist.as.blocks is set to 1.
  47. &lt;/para&gt;
  48. &lt;/listitem&gt;
  49. &lt;/varlistentry&gt;
  50. &lt;/variablelist&gt;</programlisting>
  51. </refsection>
  52. </refentry>