]> git.stg.codes - stg.git/blob - doc/xslt/params/default.float.class.xml
Ticket 26. The if (newSettings.GetLogFileName() != "") construction
[stg.git] / doc / xslt / params / default.float.class.xml
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
16 <refsynopsisdiv>
17 <src:fragment xml:id="default.float.class.frag">
18 <xsl:param name="default.float.class">
19   <xsl:choose>
20     <xsl:when test="contains($stylesheet.result.type,'html')">left</xsl:when>
21     <xsl:otherwise>before</xsl:otherwise>
22   </xsl:choose>
23 </xsl:param>
24 </src:fragment>
25 </refsynopsisdiv>
26
27 <refsection><info><title>Description</title></info>
28
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>
32
33 </refsection>
34 </refentry>