From: <bob...@us...> - 2012-05-12 23:36:20
|
Revision: 9357 http://docbook.svn.sourceforge.net/docbook/?rev=9357&view=rev Author: bobstayton Date: 2012-05-12 23:36:14 +0000 (Sat, 12 May 2012) Log Message: ----------- Make funprototype layout table compatible with html5. Modified Paths: -------------- trunk/xsl/html/synop.xsl Modified: trunk/xsl/html/synop.xsl =================================================================== --- trunk/xsl/html/synop.xsl 2012-05-12 23:33:15 UTC (rev 9356) +++ trunk/xsl/html/synop.xsl 2012-05-12 23:36:14 UTC (rev 9357) @@ -360,9 +360,13 @@ <!-- 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 @@ <!-- 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"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |