]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support bgcolor in td and th
authorBob Stayton <bobs@sagehill.net>
Wed, 1 Apr 2009 00:06:04 +0000 (00:06 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 1 Apr 2009 00:06:04 +0000 (00:06 +0000)
elements in HTML table markup.

xsl/fo/table.xsl

index 8d35dc1bde81fa9ae8a7c5e88d5ab0aa1b10e794..b0b8758d80ef575fd1c53abd1ca32538d1f8e640 100644 (file)
     </xsl:when>
     <xsl:otherwise>
       <!-- HTML table -->
+      <xsl:if test="$bgcolor.pi != ''">
+        <xsl:attribute name="background-color">
+          <xsl:value-of select="$bgcolor.pi"/>
+        </xsl:attribute>
+      </xsl:if>
       <xsl:variable name="border" 
                     select="(ancestor::table |
                              ancestor::informaltable)[last()]/@border"/>