]> granicus.if.org Git - docbook-dsssl/commitdiff
Added condition for setting block-progression-dimension.minimum on
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Apr 2006 03:14:16 +0000 (03:14 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Apr 2006 03:14:16 +0000 (03:14 +0000)
table-row, instead of height, when fop1.extensions is non-zero.
For an explanation of the reason for the change, see:
http://wiki.apache.org/xmlgraphics-fop/Troubleshooting/CommonLogMessages

xsl/fo/pagesetup.xsl

index 2b053a680cbf3f5b3a116c1a7c84ef962ae25c24..c18a7714cf186619e10756eccce39451a2e36877 100644 (file)
       </fo:table-column>
 
       <fo:table-body>
-        <fo:table-row height="14pt">
+        <fo:table-row>
+          <xsl:choose>
+            <xsl:when test="not($fop1.extensions = 0)">
+              <!-- * for any explanation of why this is here, see -->
+              <!-- * http://wiki.apache.org/xmlgraphics-fop/Troubleshooting/CommonLogMessages -->
+              <xsl:attribute name="block-progression-dimension.minimum">14pt</xsl:attribute>
+            </xsl:when>
+            <xsl:otherwise>
+              <xsl:attribute name="height">14pt</xsl:attribute>
+            </xsl:otherwise>
+          </xsl:choose>
           <fo:table-cell text-align="left"
                          display-align="before">
             <xsl:if test="$fop.extensions = 0">
       </fo:table-column>
 
       <fo:table-body>
-        <fo:table-row height="14pt">
+        <fo:table-row>
+          <xsl:choose>
+            <xsl:when test="not($fop1.extensions = 0)">
+              <!-- * for any explanation of why this is here, see -->
+              <!-- * http://wiki.apache.org/xmlgraphics-fop/Troubleshooting/CommonLogMessages -->
+              <xsl:attribute name="block-progression-dimension.minimum">14pt</xsl:attribute>
+            </xsl:when>
+            <xsl:otherwise>
+              <xsl:attribute name="height">14pt</xsl:attribute>
+            </xsl:otherwise>
+          </xsl:choose>
           <fo:table-cell text-align="left"
                          display-align="after">
             <xsl:if test="$fop.extensions = 0">