]> granicus.if.org Git - docbook-dsssl/commitdiff
Modify admon table to be compatibile with html5.
authorBob Stayton <bobs@sagehill.net>
Sat, 12 May 2012 23:17:11 +0000 (23:17 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 12 May 2012 23:17:11 +0000 (23:17 +0000)
xsl/html/admon.xsl

index e5380dd69ac3142632dda47ed7e618fd14673d3f..78a60d5ad625514806375d15f2fb6e5f4faecda8 100644 (file)
       </xsl:attribute>
     </xsl:if>
 
-    <table border="0">
-      <xsl:attribute name="summary">
-        <xsl:value-of select="$admon.type"/>
-        <xsl:if test="title|info/title">
-          <xsl:text>: </xsl:text>
-          <xsl:value-of select="(title|info/title)[1]"/>
-        </xsl:if>
-      </xsl:attribute>
+    <table border="{$table.border.off}">
+      <!-- omit summary attribute in html5 output -->
+      <xsl:if test="$div.element != 'section'">
+        <xsl:attribute name="summary">
+          <xsl:value-of select="$admon.type"/>
+          <xsl:if test="title|info/title">
+            <xsl:text>: </xsl:text>
+            <xsl:value-of select="(title|info/title)[1]"/>
+          </xsl:if>
+        </xsl:attribute>
+      </xsl:if>
       <tr>
         <td rowspan="2" align="center" valign="top">
           <xsl:attribute name="width">