]> granicus.if.org Git - docbook-dsssl/commitdiff
Applied patch #991939 to enable dbfo table-width on entrytbl.
authorBob Stayton <bobs@sagehill.net>
Fri, 29 Oct 2004 16:49:56 +0000 (16:49 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 29 Oct 2004 16:49:56 +0000 (16:49 +0000)
xsl/fo/table.xsl

index 25ef7e0db6881a1c72905f310ea60caf286a3f0c..54ee52108cd180fdb2dd70599287d87b681f076e 100644 (file)
@@ -146,11 +146,22 @@ to be incomplete. Don't forget to read the source, too :-)</para>
   </xsl:if>
 
   <xsl:variable name="explicit.table.width">
-    <xsl:call-template name="dbfo-attribute">
-      <xsl:with-param name="pis"
-                      select="../processing-instruction('dbfo')"/>
-      <xsl:with-param name="attribute" select="'table-width'"/>
-    </xsl:call-template>
+    <xsl:choose>
+      <xsl:when test="self::entrytbl">
+        <xsl:call-template name="dbfo-attribute">
+          <xsl:with-param name="pis" 
+                          select="processing-instruction('dbfo')"/>
+          <xsl:with-param name="attribute" select="'table-width'"/>
+        </xsl:call-template>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:call-template name="dbfo-attribute">
+          <xsl:with-param name="pis" 
+                          select="../processing-instruction('dbfo')"/>
+          <xsl:with-param name="attribute" select="'table-width'"/>
+        </xsl:call-template>
+      </xsl:otherwise>
+    </xsl:choose>
   </xsl:variable>
 
   <xsl:variable name="table.width">