r4539 - trunk/BOOK/stylesheets/xhtml

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Thu Jun 2 09:49:14 PDT 2005


Author: manuel
Date: 2005-06-02 10:49:14 -0600 (Thu, 02 Jun 2005)
New Revision: 4539

Modified:
   trunk/BOOK/stylesheets/xhtml/lfs-toc.xsl
Log:
Removed unneeded elements from TOC generation.

Modified: trunk/BOOK/stylesheets/xhtml/lfs-toc.xsl
===================================================================
--- trunk/BOOK/stylesheets/xhtml/lfs-toc.xsl	2005-06-01 19:35:09 UTC (rev 4538)
+++ trunk/BOOK/stylesheets/xhtml/lfs-toc.xsl	2005-06-02 16:49:14 UTC (rev 4539)
@@ -4,10 +4,10 @@
                 xmlns="http://www.w3.org/1999/xhtml"
                 version="1.0">
 
-		<!-- General settings -->
+    <!-- General settings -->
   <xsl:param name="generate.toc">
     appendix  toc
-    book      toc,title,figure,table,example,equation
+    book      toc,title
     chapter   nop
     part      toc
     preface   nop
@@ -27,8 +27,8 @@
 
   <xsl:param name="toc.max.depth">3</xsl:param>
 
-  	<!-- Making the TOC -->
-	<xsl:template name="make.toc">
+    <!-- Making the TOC -->
+  <xsl:template name="make.toc">
     <xsl:param name="toc-context" select="."/>
     <xsl:param name="nodes" select="/NOT-AN-ELEMENT"/>
     <xsl:if test="$nodes">
@@ -70,8 +70,8 @@
       <xsl:call-template name="toc.line">
         <xsl:with-param name="toc-context" select="$toc-context"/>
       </xsl:call-template>
-      <xsl:if test="$toc.section.depth > $depth and count($nodes)>0 
-      				and $toc.max.depth > $depth.from.context">
+      <xsl:if test="$toc.section.depth > $depth and count($nodes)>0
+              and $toc.max.depth > $depth.from.context">
         <xsl:copy-of select="$subtoc"/>
       </xsl:if>
     </li>




More information about the blfs-book mailing list