]> granicus.if.org Git - docbook-dsssl/commitdiff
fixed bug in floats in XSL Formatter.
authorBob Stayton <bobs@sagehill.net>
Sun, 23 Jan 2005 07:33:46 +0000 (07:33 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 23 Jan 2005 07:33:46 +0000 (07:33 +0000)
xsl/fo/block.xsl

index 84944627442ec2062e2db37b6c2c1eee0a308240..185fb0908530e6879eaef380a6e86ca9610b5ea7 100644 (file)
         </xsl:when>
         <xsl:when test="$axf.extensions != 0 and 
                         ($position = 'left' or $position = 'start')">
-          <!-- Special case for handling inline floats in Antenna House-->
           <fo:float float="{$position}"
                     clear="{$clear}">
             <fo:block-container 
                       inline-progression-dimension=".001mm"
-                      start-indent="-{$body.start.indent}"
                       end-indent="{$start.indent} + {$width} + {$end.indent}">
+              <xsl:attribute name="start-indent">
+                <xsl:choose>
+                  <xsl:when test="ancestor::para">
+                    <!-- Special case for handling inline floats
+                        in Antenna House-->
+                    <xsl:value-of select="concat('-', $body.start.indent)"/>
+                  </xsl:when>
+                  <xsl:otherwise>0pt</xsl:otherwise>
+                </xsl:choose>
+             </xsl:attribute>
               <fo:block start-indent="{$start.indent}"
                         end-indent="-{$start.indent} - {$width}">
                 <xsl:copy-of select="$content"/>