default.float.class.xml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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="default.float.class">
  7. <refmeta>
  8. <refentrytitle>default.float.class</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>default.float.class</refname>
  13. <refpurpose>Specifies the default float class</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="default.float.class.frag">
  17. <xsl:param name="default.float.class">
  18. <xsl:choose>
  19. <xsl:when test="contains($stylesheet.result.type,'html')">left</xsl:when>
  20. <xsl:otherwise>before</xsl:otherwise>
  21. </xsl:choose>
  22. </xsl:param>
  23. </src:fragment>
  24. </refsynopsisdiv>
  25. <refsection><info><title>Description</title></info>
  26. <para>Selects the direction in which a float should be placed. for
  27. xsl-fo this is before, for html it is left. For Western texts, the
  28. before direction is the top of the page.</para>
  29. </refsection>
  30. </refentry>