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