]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug 2979166 able - Attribute @rowheader not working
authorBob Stayton <bobs@sagehill.net>
Mon, 9 Aug 2010 21:19:53 +0000 (21:19 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 9 Aug 2010 21:19:53 +0000 (21:19 +0000)
xsl/fo/table.xsl

index d53e0c2b07354bde073c18693c95f0c34313c37e..f3e31b2eb9522953171cacdfae5ea94ad5c6cd79 100644 (file)
 <!-- Expand this template to add properties to any cell's block -->
 <xsl:template name="table.cell.block.properties">
   <!-- highlight this entry? -->
-  <xsl:if test="ancestor::thead or ancestor::tfoot">
-    <xsl:attribute name="font-weight">bold</xsl:attribute>
-  </xsl:if>
+  <xsl:choose>
+    <xsl:when test="ancestor::thead or ancestor::tfoot">
+      <xsl:attribute name="font-weight">bold</xsl:attribute>
+    </xsl:when>
+    <!-- Make row headers bold too -->
+    <xsl:when test="ancestor::tbody and 
+                    (ancestor::table[@rowheader = 'firstcol'] or
+                    ancestor::informaltable[@rowheader = 'firstcol']) and
+                    ancestor-or-self::entry[1][count(preceding-sibling::entry) = 0]">
+      <xsl:attribute name="font-weight">bold</xsl:attribute>
+    </xsl:when>
+  </xsl:choose>
 </xsl:template>
 
 <xsl:template match="entry|entrytbl" name="sentry" mode="span">