docs: don't use <i> and <tt> HTML tags

Use of <tt> is discouraged in HTML 4.x and has finally been obsoleted
in HTML 5. Likewise for the <i> tag.

Using tables for layout is (widely) considered bad style, too.

Use defintion lists, definition term and defintion description
elements instead.

Signed-off-by: Claudio Bley <cbley@av-test.de>
This commit is contained in:
Claudio Bley 2013-01-17 16:00:11 +01:00 committed by Jiri Denemark
parent 458dd20da9
commit cb022b6bc7

View File

@ -457,28 +457,24 @@
</xsl:call-template> </xsl:call-template>
</div> </div>
<xsl:if test="arg | return"> <xsl:if test="arg | return">
<div class="variablelist"><table border="0"><col align="left"/><tbody> <dl class="variablelist">
<xsl:for-each select="arg"> <xsl:for-each select="arg">
<tr> <dt><xsl:value-of select="@name"/></dt>
<td><span class="term"><i><tt><xsl:value-of select="@name"/></tt></i>:</span></td> <dd>
<td> <xsl:call-template name="dumptext">
<xsl:call-template name="dumptext">
<xsl:with-param name="text" select="@info"/> <xsl:with-param name="text" select="@info"/>
</xsl:call-template> </xsl:call-template>
</td> </dd>
</tr>
</xsl:for-each> </xsl:for-each>
<xsl:if test="return/@info"> <xsl:if test="return/@info">
<tr> <dt>Returns</dt>
<td><span class="term"><i><tt>Returns</tt></i>:</span></td> <dd>
<td> <xsl:call-template name="dumptext">
<xsl:call-template name="dumptext"> <xsl:with-param name="text" select="return/@info"/>
<xsl:with-param name="text" select="return/@info"/> </xsl:call-template>
</xsl:call-template> </dd>
</td>
</tr>
</xsl:if> </xsl:if>
</tbody></table></div> </dl>
</xsl:if> </xsl:if>
<br/> <br/>
<xsl:text> <xsl:text>
@ -538,28 +534,24 @@
</div><xsl:text> </div><xsl:text>
</xsl:text> </xsl:text>
<xsl:if test="arg | return/@info"> <xsl:if test="arg | return/@info">
<div class="variablelist"><table border="0"><col align="left"/><tbody> <dl class="variablelist">
<xsl:for-each select="arg"> <xsl:for-each select="arg">
<tr> <dt><xsl:value-of select="@name"/></dt>
<td><span class="term"><i><tt><xsl:value-of select="@name"/></tt></i>:</span></td> <dd>
<td> <xsl:call-template name="dumptext">
<xsl:call-template name="dumptext"> <xsl:with-param name="text" select="@info"/>
<xsl:with-param name="text" select="@info"/> </xsl:call-template>
</xsl:call-template> </dd>
</td> </xsl:for-each>
</tr> <xsl:if test="return/@info">
</xsl:for-each> <dt>Returns</dt>
<xsl:if test="return/@info"> <dd>
<tr>
<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
<td>
<xsl:call-template name="dumptext"> <xsl:call-template name="dumptext">
<xsl:with-param name="text" select="return/@info"/> <xsl:with-param name="text" select="return/@info"/>
</xsl:call-template> </xsl:call-template>
</td> </dd>
</tr> </xsl:if>
</xsl:if> </dl>
</tbody></table></div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>