diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-12-19 21:17:48 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-12-19 21:17:48 +0000 |
commit | f7bd105db3cf74fb6d2bfed726cf5d187cb1109f (patch) | |
tree | 0077803fc32f39b293b3860f6ffa765eefcec94f /stylesheets/xhtml/lfs-toc.xsl | |
parent | 6d3af72bf2b333798eba7b88075fccab9441519f (diff) |
Updated the stylesheets and Makefile.
Removed contrib/, index-pdf.xml and goTidy.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4428 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/xhtml/lfs-toc.xsl')
-rw-r--r-- | stylesheets/xhtml/lfs-toc.xsl | 19 |
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"> |