diff --git a/doclib/html-munge.xsl b/doclib/html-munge.xsl index 241bc8b868f32d07b683862bde7c7363d690505e..ce977f40b843ab6b6493c178d93d9b458ee9c5a0 100644 --- a/doclib/html-munge.xsl +++ b/doclib/html-munge.xsl @@ -2,46 +2,45 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <xsl:output method="html" encoding="html" /> - - <xsl:template match="/"> - <html> - <body bgcolor="#FFFFFF"> - <xsl:apply-templates/> - </body> - </html> - </xsl:template> - - <xsl:template match="dl[dt/b/a/text()='Bug:']"> + <xsl:output method="html" encoding="html"/> + + <xsl:template name="add-class"> + <xsl:param name="class"/> <xsl:copy> <xsl:for-each select="@*"><xsl:copy/></xsl:for-each> - <xsl:attribute name="class">xref-bug</xsl:attribute> + <xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute> <xsl:apply-templates/> </xsl:copy> </xsl:template> - <xsl:template match="dl[dt/b/a/text()='Fixme:']"> - <xsl:copy> - <xsl:for-each select="@*"><xsl:copy/></xsl:for-each> - <xsl:attribute name="class">xref-fixme</xsl:attribute> - <xsl:apply-templates/> - </xsl:copy> + <xsl:template match="dl[dt/b/a/text()='Bug:']"> + <xsl:call-template name="add-class"> + <xsl:with-param name="class">xref-bug</xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template match="dl[dt/b/a/text()='Fix:']"> + <xsl:call-template name="add-class"> + <xsl:with-param name="class">xref-fix</xsl:with-param> + </xsl:call-template> </xsl:template> <xsl:template match="dl[dt/b/a/text()='Todo:']"> - <xsl:copy> - <xsl:for-each select="@*"><xsl:copy/></xsl:for-each> - <xsl:attribute name="class">xref-todo</xsl:attribute> - <xsl:apply-templates/> - </xsl:copy> + <xsl:call-template name="add-class"> + <xsl:with-param name="class">xref-todo</xsl:with-param> + </xsl:call-template> </xsl:template> <xsl:template match="dl[dt/b/a/text()='Idea:']"> - <xsl:copy> - <xsl:for-each select="@*"><xsl:copy/></xsl:for-each> - <xsl:attribute name="class">xref-idea</xsl:attribute> - <xsl:apply-templates/> - </xsl:copy> + <xsl:call-template name="add-class"> + <xsl:with-param name="class">xref-idea</xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template match="dl[dt/b/text()='Parameters:']"> + <xsl:call-template name="add-class"> + <xsl:with-param name="class">parameters</xsl:with-param> + </xsl:call-template> </xsl:template> <xsl:template match="*"> diff --git a/doclib/senf.css b/doclib/senf.css index ddfeff0c080df36bb928b08ad714d3fae96f537b..95d434d81a04ae80606ad002b73339331c699126 100644 --- a/doclib/senf.css +++ b/doclib/senf.css @@ -252,3 +252,7 @@ div.qindex { padding: 2px; line-height: 140%; } + +dl.parameters dd table { + width: auto; +} \ No newline at end of file