]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #880044 in which rowsep or colsep attributes on the
authorBob Stayton <bobs@sagehill.net>
Mon, 12 Apr 2004 02:39:39 +0000 (02:39 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 12 Apr 2004 02:39:39 +0000 (02:39 +0000)
table or informaltable element had no effect.

xsl/common/table.xsl

index 75528781f730300e4ee98d0860ff4e98b06c4f95..c26d52397ce71e6b0b588ca06d64b9134e589619 100644 (file)
@@ -248,6 +248,9 @@ or 0 (the empty string)</para>
 
   <xsl:variable name="tgroup" select="$row/ancestor::tgroup[1]"/>
 
+  <xsl:variable name="table" select="($tgroup/ancestor::table
+                                     |$tgroup/ancestor::informaltable)[1]"/>
+
   <xsl:variable name="entry.value">
     <xsl:call-template name="get-attribute">
       <xsl:with-param name="element" select="$entry"/>
@@ -325,6 +328,13 @@ or 0 (the empty string)</para>
     </xsl:call-template>
   </xsl:variable>
 
+  <xsl:variable name="table.value">
+    <xsl:call-template name="get-attribute">
+      <xsl:with-param name="element" select="$table"/>
+      <xsl:with-param name="attribute" select="$attribute"/>
+    </xsl:call-template>
+  </xsl:variable>
+
   <xsl:variable name="default.value">
     <!-- This section used to say that rowsep and colsep have defaults based -->
     <!-- on the frame setting. Further reflection and closer examination of the -->
@@ -347,6 +357,12 @@ or 0 (the empty string)</para>
     <xsl:when test="$row.value != ''">
       <xsl:value-of select="$row.value"/>
     </xsl:when>
+    <xsl:when test="$tgroup.value != ''">
+      <xsl:value-of select="$tgroup.value"/>
+    </xsl:when>
+    <xsl:when test="$table.value != ''">
+      <xsl:value-of select="$table.value"/>
+    </xsl:when>
     <xsl:when test="$span.value != ''">
       <xsl:value-of select="$span.value"/>
     </xsl:when>