]> granicus.if.org Git - docbook-dsssl/commitdiff
Set different values for html (left) and fo (begin).
authorBob Stayton <bobs@sagehill.net>
Tue, 2 May 2006 07:00:40 +0000 (07:00 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 2 May 2006 07:00:40 +0000 (07:00 +0000)
xsl/params/default.float.class.xml

index fc66a2961c577c23ff434717e9451d5432e66c27..59a4d4dec7521c94827775669fbb8be2abfa926a 100644 (file)
 
 <refsynopsisdiv>
 <src:fragment id='default.float.class.frag'>
-<xsl:param name="default.float.class" select="'before'"/>
+<xsl:param name="default.float.class">
+  <xsl:choose>
+    <xsl:when test="contains($stylesheet.result.type,'html')">left</xsl:when>
+    <xsl:otherwise>before</xsl:otherwise>
+  </xsl:choose>
+</xsl:param>
 </src:fragment>
 </refsynopsisdiv>