[yelp-xsl] Implement th/@scope attribute



commit 72821085aef6667c468bcb03a22592d7d6214443
Author: Shaun McCance <shaunm redhat com>
Date:   Tue Mar 6 08:05:37 2018 -0500

    Implement th/@scope attribute

 xslt/docbook/html/db2html-table.xsl  |    2 +-
 xslt/mallard/html/mal2html-table.xsl |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-table.xsl b/xslt/docbook/html/db2html-table.xsl
index 148d4d1..d0c98eb 100644
--- a/xslt/docbook/html/db2html-table.xsl
+++ b/xslt/docbook/html/db2html-table.xsl
@@ -1209,7 +1209,7 @@ REMARK: This template needs to be explained in detail, but I forgot how it works
   <xsl:element name="{local-name(.)}" namespace="{$html.namespace}">
     <xsl:call-template name="html.lang.attrs"/>
     <xsl:call-template name="html.class.attr"/>
-    <xsl:copy-of select="@valign | @rowspan | @colspan"/>
+    <xsl:copy-of select="@valign | @rowspan | @colspan | @scope"/>
     <xsl:choose>
       <xsl:when test="@align = 'left' or @align = 'center' or 
                       @align = 'right' or @align = 'justify' ">
diff --git a/xslt/mallard/html/mal2html-table.xsl b/xslt/mallard/html/mal2html-table.xsl
index 8b39c71..9510c41 100644
--- a/xslt/mallard/html/mal2html-table.xsl
+++ b/xslt/mallard/html/mal2html-table.xsl
@@ -525,6 +525,11 @@ REMARK: Describe this module
         <xsl:value-of select="@rowspan"/>
       </xsl:attribute>
     </xsl:if>
+    <xsl:if test="self::mal:th/@scope">
+      <xsl:attribute name="scope">
+        <xsl:value-of select="@scope"/>
+      </xsl:attribute>
+    </xsl:if>
     <xsl:apply-templates mode="mal2html.block.mode"/>
   </xsl:element>
 </xsl:template>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]