]> 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:18:23 +0000 (21:18 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 9 Aug 2010 21:18:23 +0000 (21:18 +0000)
xsl/html/table.xsl

index 436078d71b21dbf48ce3342dfcd140855b79892f..6e47b55ecf14a1f041d878cdc1f1691a0403e67f 100644 (file)
     <xsl:choose>
       <xsl:when test="ancestor::thead">th</xsl:when>
       <xsl:when test="ancestor::tfoot">th</xsl:when>
+      <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:text>th</xsl:text>
+      </xsl:when>
       <xsl:otherwise>td</xsl:otherwise>
     </xsl:choose>
   </xsl:variable>