From: Bob Stayton <bobs@sagehill.net>
Date: Sat, 12 May 2012 23:36:14 +0000 (+0000)
Subject: Make funprototype layout table compatible with html5.
X-Git-Tag: release/1.79.1~6^2~434
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cfc81013ca44362ce0631c22cd6ee387213b9fd;p=docbook-dsssl

Make funprototype layout table compatible with html5.
---

diff --git a/xsl/html/synop.xsl b/xsl/html/synop.xsl
index bb78badc2..c92e9c750 100644
--- a/xsl/html/synop.xsl
+++ b/xsl/html/synop.xsl
@@ -360,9 +360,13 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 <!-- funcprototype: kr, tabular -->
 
 <xsl:template match="funcprototype" mode="kr-tabular">
-  <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0"
-    class="funcprototype-table"
-    >
+  <table border="{$table.border.off}" class="funcprototype-table">
+    <xsl:if test="$div.element != 'section'">
+      <xsl:attribute name="summary">Function synopsis</xsl:attribute>
+    </xsl:if>
+    <xsl:if test="$css.decoration != 0">
+      <xsl:attribute name="style">cellspacing: 0; cellpadding: 0;</xsl:attribute>
+    </xsl:if>
     <tr>
       <td>
         <xsl:apply-templates select="funcdef" mode="kr-tabular"/>
@@ -620,9 +624,15 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
 <!-- funcprototype: ansi, tabular -->
 
 <xsl:template match="funcprototype" mode="ansi-tabular">
-  <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0"
+  <table border="{$table.border.off}" 
     class="funcprototype-table"
     >
+    <xsl:if test="$div.element != 'section'">
+      <xsl:attribute name="summary">Function synopsis</xsl:attribute>
+    </xsl:if>
+    <xsl:if test="$css.decoration != 0">
+      <xsl:attribute name="style">cellspacing: 0; cellpadding: 0;</xsl:attribute>
+    </xsl:if>
     <tr>
       <td>
         <xsl:apply-templates select="funcdef" mode="ansi-tabular"/>