]> granicus.if.org Git - docbook-dsssl/commitdiff
Support bgcolor and class dbhtml PIs on table rows
authorNorman Walsh <ndw@nwalsh.com>
Thu, 29 Jan 2004 12:33:15 +0000 (12:33 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 29 Jan 2004 12:33:15 +0000 (12:33 +0000)
xsl/html/table.xsl

index 60819bb0d92d89c653c735431e85f8c57234453c..38163a346251410a70dd1d13e8d47cd0232ef507 100644 (file)
     </xsl:if>
   </xsl:variable>
 
+  <xsl:variable name="bgcolor">
+    <xsl:if test="processing-instruction('dbhtml')">
+      <xsl:call-template name="dbhtml-attribute">
+       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
+       <xsl:with-param name="attribute" select="'bgcolor'"/>
+      </xsl:call-template>
+    </xsl:if>
+  </xsl:variable>
+
+  <xsl:variable name="class">
+    <xsl:if test="processing-instruction('dbhtml')">
+      <xsl:call-template name="dbhtml-attribute">
+       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
+       <xsl:with-param name="attribute" select="'class'"/>
+      </xsl:call-template>
+    </xsl:if>
+  </xsl:variable>
+
   <tr>
     <xsl:call-template name="tr.attributes">
       <xsl:with-param name="rownum">
       </xsl:attribute>
     </xsl:if>
 
+    <xsl:if test="$bgcolor != ''">
+      <xsl:attribute name="bgcolor">
+        <xsl:value-of select="$bgcolor"/>
+      </xsl:attribute>
+    </xsl:if>
+
+    <xsl:if test="$class != ''">
+      <xsl:attribute name="class">
+        <xsl:value-of select="$class"/>
+      </xsl:attribute>
+    </xsl:if>
+
     <xsl:if test="$table.borders.with.css != 0">
       <xsl:if test="@rowsep = 1 and following-sibling::row">
         <xsl:attribute name="style">