[svnbook] r4405 committed - * tools/base-html-stylesheet.xsl...
svnbook at googlecode.com
svnbook at googlecode.com
Wed Feb 6 14:29:02 CST 2013
Revision: 4405
Author: cmpilato at gmail.com
Date: Wed Feb 6 12:28:46 2013
Log: * tools/base-html-stylesheet.xsl
Don't set TOC configuration parameters here, hoping to override them
in chunk-stylesheet.xsl. That's not how XSL works.
* tools/chunk-stylesheet.xsl,
* tools/html-stylesheet.xsl
Rather, declare them here for the two different HTML output flavors.
http://code.google.com/p/svnbook/source/detail?r=4405
Modified:
/trunk/tools/base-html-stylesheet.xsl
/trunk/tools/chunk-stylesheet.xsl
/trunk/tools/html-stylesheet.xsl
=======================================
--- /trunk/tools/base-html-stylesheet.xsl Wed Feb 6 07:39:43 2013
+++ /trunk/tools/base-html-stylesheet.xsl Wed Feb 6 12:28:46 2013
@@ -17,27 +17,6 @@
<xsl:param name="callout.graphics" select="1" />
<xsl:param name="callout.graphics.extension">.png</xsl:param>
- <!-- Turn off most of the TOC generation. (For chunked HTML output, -->
- <!-- we re-enabled some of these in chunk-stylesheet.xsl.) -->
- <xsl:param name="generate.toc">
-appendix nop
-article nop
-book toc,title,figure,table,example,equation
-chapter nop
-part nop
-preface nop
-qandadiv nop
-qandaset nop
-reference nop
-sect1 nop
-sect2 nop
-sect3 nop
-sect4 nop
-sect5 nop
-section nop
-set nop
- </xsl:param>
-
<xsl:template match="sect1" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:call-template name="subtoc">
=======================================
--- /trunk/tools/chunk-stylesheet.xsl Wed Feb 6 07:39:43 2013
+++ /trunk/tools/chunk-stylesheet.xsl Wed Feb 6 12:28:46 2013
@@ -18,21 +18,19 @@
<xsl:param name="chunk.first.sections">1</xsl:param>
<xsl:param name="chunk.quietly" select="1"></xsl:param>
- <!-- Override the TOC generation settings in base-stylesheet.xsl, -->
- <!-- because for chunked HTML output, we want a few more TOCs. -->
- <!-- ### FIXME: This override doesn't seem to work! -->
+ <!-- TOC generation settings -->
<xsl:param name="generate.toc">
appendix toc,title
article nop
book toc,title,figure,table,example,equation
-chapter toc
-part title
+chapter toc,title
+part toc,title
preface toc,title
qandadiv nop
qandaset nop
reference toc,title
-sect1 toc
-sect2 toc
+sect1 nop
+sect2 nop
sect3 nop
sect4 nop
sect5 nop
=======================================
--- /trunk/tools/html-stylesheet.xsl Thu Apr 2 19:45:00 2009
+++ /trunk/tools/html-stylesheet.xsl Wed Feb 6 12:28:46 2013
@@ -13,4 +13,24 @@
<!-- Uncomment this to enable auto-numbering of sections -->
<!-- xsl:param name="section.autolabel" select="1" / -->
+ <!-- TOC generation settings -->
+ <xsl:param name="generate.toc">
+appendix nop
+article nop
+book toc,title,figure,table,example,equation
+chapter nop
+part nop
+preface nop
+qandadiv nop
+qandaset nop
+reference nop
+sect1 nop
+sect2 nop
+sect3 nop
+sect4 nop
+sect5 nop
+section nop
+set nop
+ </xsl:param>
+
</xsl:stylesheet>
More information about the svnbook-dev
mailing list