aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/xhtml/lfs-toc.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'stylesheets/xhtml/lfs-toc.xsl')
-rw-r--r--stylesheets/xhtml/lfs-toc.xsl19
1 files changed, 18 insertions, 1 deletions
diff --git a/stylesheets/xhtml/lfs-toc.xsl b/stylesheets/xhtml/lfs-toc.xsl
index 56ad11ebc..4fb845844 100644
--- a/stylesheets/xhtml/lfs-toc.xsl
+++ b/stylesheets/xhtml/lfs-toc.xsl
@@ -6,7 +6,7 @@
<!-- General settings -->
<xsl:param name="generate.toc">
- appendix toc
+ appendix nop
book toc,title,figure,table,example,equation
chapter nop
part toc
@@ -93,6 +93,23 @@
<xsl:apply-templates select="." mode="titleabbrev.markup"/>
</a>
</xsl:when>
+ <xsl:when test="local-name(.) = 'appendix'">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="context" select="$toc-context"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
+ <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+ </a>
+ </xsl:when>
<xsl:when test="local-name(.) = 'chapter' or local-name(.) = 'preface'">
<h4>
<xsl:variable name="label">