side.float.properties.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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="side.float.properties">
  7. <refmeta>
  8. <refentrytitle>side.float.properties</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>side.float.properties</refname>
  13. <refpurpose>Attribute set for side float container properties</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="side.float.properties.frag">
  17. <xsl:attribute-set name="side.float.properties">
  18. <xsl:attribute name="width">2in</xsl:attribute>
  19. <xsl:attribute name="padding-start">4pt</xsl:attribute>
  20. <xsl:attribute name="padding-end">4pt</xsl:attribute>
  21. <xsl:attribute name="padding-top">2pt</xsl:attribute>
  22. <xsl:attribute name="padding-bottom">2pt</xsl:attribute>
  23. <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute>
  24. <xsl:attribute name="margin-{$direction.align.end}">0pt</xsl:attribute>
  25. <xsl:attribute name="text-align">start</xsl:attribute>
  26. </xsl:attribute-set>
  27. </src:fragment>
  28. </refsynopsisdiv>
  29. <refsection><info><title>Description</title></info>
  30. <para>Properties that are applied to the
  31. <tag class="element">fo:block-container</tag> inside of
  32. a side float that is generated by the template named
  33. <literal>floater</literal>.
  34. That template generates a side float
  35. when the <parameter>side.float.type</parameter> is set to one
  36. of the values for a side float.</para>
  37. <para>If you do only <literal>left</literal> or
  38. <literal>start</literal> side floats, you may want to set the
  39. <literal>padding-start</literal> attribute to zero.
  40. If you do only <literal>right</literal> or
  41. <literal>end</literal> side floats, you may want to set the
  42. <literal>padding-end</literal> attribute to zero.
  43. </para>
  44. </refsection>
  45. </refentry>