[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Appendix Titles
Hello list, I'm trying to add the word "Appendix" before any Appendix Title. This occurs in three places. 1) Table of contents 2) <title> of appendix 3) Main text of appendix I've solved 1 and 2 using the below modifications, <!-- Adds "Appendix" to appendices --> <xsl:template name="head.content"> ... <title> <!-- Added this --> <xsl:if test="local-name(.) = 'appendix'"> <xsl:call-template name="gentext"> <xsl:with-param name="key" select="'Appendix'"/> </xsl:call-template> <xsl:text> </xsl:text> </xsl:if> <xsl:copy-of select="$title"/> </title> ... </xsl:template> <!-- Add "Appendix" to appendices listing in TOC --> <xsl:template name="toc.line"> ... <span> <xsl:attribute name="class"><xsl:value-of select="local-name(.)"/></xsl:attribute> <a> ... <!-- Added this --> <xsl:choose> <xsl:when test="self::appendix"> <xsl:call-template name="gentext"> <xsl:with-param name="key" select="'Appendix'"/> </xsl:call-template> <xsl:text> </xsl:text> </xsl:when> </xsl:choose> ... </a> </span> </xsl:template> However I'm unable to solve number 3. If anyone knows how to add this, that would be great. Better yet, is there a better way to do it? Kind regards, Aidan
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]