]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support for floatstyle to figure.
authorBob Stayton <bobs@sagehill.net>
Tue, 13 Dec 2005 16:55:01 +0000 (16:55 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 13 Dec 2005 16:55:01 +0000 (16:55 +0000)
xsl/html/formal.xsl

index 8899efc36e0302425c8d9a3d60c23e083ad514eb..20b57b2c74f23731edab380bf8d0ce2ef7530ab7 100644 (file)
   </xsl:variable>
 
   <xsl:choose>
-    <xsl:when test="@float and @float != 0">
+    <xsl:when test="(@float and @float != '0') or @floatstyle != ''">
       <xsl:variable 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>