[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Extra title generated for revhistory
I have a customization to select either the gentext key or
<title> content for <revhistory>. When it's the latter,
an additional title is generated after the table head in HTML5, viz: <div class="revhistory"><table style="border-style:solid; width:100%;" class="revhistorytbl"> <tr> <th style="align: left; valign: top;" colspan="4">Revision history (this book)</th> </tr> <h1 class="title">Revision history (this book)</h1> <tr> <td style="align: left; width: 25%;">Revision 1</td> Part of the customization of <xsl:template match="d:revhistory" mode="titlepage.mode"> is: <xsl:variable name="title"> <xsl:choose> <xsl:when test="d:title"> <xsl:value-of select="d:title"/> <!--<xsl:apply-templates select="d:title|d:info/d:title" mode="titlepage.mode"/>--> </xsl:when> <xsl:otherwise> <xsl:call-template name="gentext"> <xsl:with-param name="key" select="'RevHistory'"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> <!--<xsl:call-template name="gentext"> <xsl:with-param name="key">RevHistory</xsl:with-param> </xsl:call-template>--> </xsl:variable> <xsl:variable name="contents"> <div> <xsl:apply-templates select="." mode="common.html.attributes"/> <xsl:call-template name="id.attribute"/> <table> <!--remove hardcoded style + add class attrib ***works 19/1/13--> <!--<xsl:if test="$css.decoration != 0"> <xsl:attribute name="style"> <xsl:text>border-style:solid; width:100%;</xsl:text> </xsl:attribute> </xsl:if>--> <xsl:attribute name="class"> <xsl:value-of select="'revhistorytbl'"/> </xsl:attribute> <!-- include summary attribute if not HTML5 --> <xsl:if test="$div.element != 'section'"> <xsl:attribute name="summary"> <xsl:call-template name="gentext"> <xsl:with-param name="key">revhistory</xsl:with-param> </xsl:call-template> </xsl:attribute> </xsl:if> <tr> <!--HTML5 attrs added to th 19/1/13--> <th style="align: {$direction.align.start}; valign: top;" colspan="{$numcols}"> <xsl:copy-of select="$title"/> <!--<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform"> <xsl:call-template name="gentext"> <xsl:with-param name="key" select="'RevHistory'"/> </xsl:call-template> </strong>--> </th> </tr> <xsl:apply-templates mode="titlepage.mode"> <xsl:with-param name="numcols" select="$numcols"/> </xsl:apply-templates> </table> </div> </xsl:variable> So the second title is generated by the <xsl:apply-templates mode="titlepage.mode">. How can I "exclude" the second title? --
Dave Gardiner |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]