]> granicus.if.org Git - docbook-dsssl/commitdiff
Patch #514664: keep-together for table-cell if xep
authorNorman Walsh <ndw@nwalsh.com>
Sat, 29 Jun 2002 11:05:02 +0000 (11:05 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 29 Jun 2002 11:05:02 +0000 (11:05 +0000)
xsl/fo/table.xsl

index 464ba9d1fe2325fa613037430bd83af07d7558b3..872a28c68fe88ca3d19a99a8e867142e8911a2dd 100644 (file)
@@ -82,6 +82,10 @@ to be incomplete. Don't forget to read the source, too :-)</para>
   <fo:table-cell text-align="center"
                  display-align="center"
                  xsl:use-attribute-sets="table.cell.padding">
+    <xsl:if test="$xep.extensions != 0">
+      <!-- Suggested by RenderX to workaround a bug in their implementation -->
+      <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
+    </xsl:if>
     <xsl:if test="$rowsep &gt; 0">
       <xsl:call-template name="border">
         <xsl:with-param name="side" select="'bottom'"/>
@@ -375,6 +379,11 @@ to be incomplete. Don't forget to read the source, too :-)</para>
 
     <xsl:otherwise>
       <fo:table-cell xsl:use-attribute-sets="table.cell.padding">
+        <xsl:if test="$xep.extensions != 0">
+          <!-- Suggested by RenderX to workaround a bug in their implementation -->
+          <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
+        </xsl:if>
+
         <xsl:call-template name="anchor"/>
 
         <xsl:if test="$rowsep &gt; 0">