]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support for @floatstyle in figure
authorBob Stayton <bobs@sagehill.net>
Tue, 18 Jan 2005 07:16:21 +0000 (07:16 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 18 Jan 2005 07:16:21 +0000 (07:16 +0000)
xsl/fo/formal.xsl

index c2d1665febdc325b2703c40625b82e9ae3c94748..4dd73cff1fda583cf14a61b38e7464bbc7a42d81 100644 (file)
   </xsl:variable>
 
   <xsl:choose>
-    <xsl:when test="@float and @float != '0'">
+    <xsl:when test="(@float and @float != '0') or @floatstyle != ''">
       <fo:float>
         <xsl:attribute name="float">
           <xsl:choose>
+            <xsl:when test="@floatstyle != ''">
+              <xsl:value-of select="@floatstyle"/>
+            </xsl:when>
             <xsl:when test="@float = '1'">
               <xsl:value-of select="$default.float.class"/>
             </xsl:when>