section.container.element.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="section.container.element">
  7. <refmeta>
  8. <refentrytitle>section.container.element</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">list</refmiscinfo>
  10. <refmiscinfo class="other" otherclass="value">block</refmiscinfo>
  11. <refmiscinfo class="other" otherclass="value">wrapper</refmiscinfo>
  12. </refmeta>
  13. <refnamediv>
  14. <refname>section.container.element</refname>
  15. <refpurpose>Select XSL-FO element name to contain sections</refpurpose>
  16. </refnamediv>
  17. <refsynopsisdiv>
  18. <src:fragment xml:id="section.container.element.frag">
  19. <xsl:param name="section.container.element">block</xsl:param>
  20. </src:fragment>
  21. </refsynopsisdiv>
  22. <refsection><info><title>Description</title></info>
  23. <para>Selects the element name for outer container of
  24. each section. The choices are <literal>block</literal> (default)
  25. or <literal>wrapper</literal>.
  26. The <literal>fo:</literal> namespace prefix is added
  27. by the stylesheet to form the full element name.
  28. </para>
  29. <para>This element receives the section <literal>id</literal>
  30. attribute and the appropriate section level attribute-set.
  31. </para>
  32. <para>Changing this parameter to <literal>wrapper</literal>
  33. is only necessary when producing multi-column output
  34. that contains page-wide spans. Using <literal>fo:wrapper</literal>
  35. avoids the nesting of <literal>fo:block</literal>
  36. elements that prevents spans from working (the standard says
  37. a span must be on a block that is a direct child of
  38. <literal>fo:flow</literal>).
  39. </para>
  40. <para>If set to <literal>wrapper</literal>, the
  41. section attribute-sets only support properties
  42. that are inheritable. That's because there is no
  43. block to apply them to. Properties such as
  44. font-family are inheritable, but properties such as
  45. border are not.
  46. </para>
  47. <para>Only some XSL-FO processors need to use this parameter.
  48. The Antenna House processor, for example, will handle
  49. spans in nested blocks without changing the element name.
  50. The RenderX XEP product and FOP follow the XSL-FO standard
  51. and need to use <literal>wrapper</literal>.
  52. </para>
  53. </refsection>
  54. </refentry>