[svnbook commit] r1298 - trunk/src/tools
maxb
svnbook-dev at red-bean.com
Tue May 17 09:45:16 CDT 2005
Author: maxb
Date: Tue May 17 09:45:14 2005
New Revision: 1298
Added:
trunk/src/tools/base-html-stylesheet.xsl
- copied, changed from r1294, trunk/src/tools/html-stylesheet.xsl
trunk/src/tools/html-stylesheet.xsl
Modified:
trunk/src/tools/chunk-stylesheet.xsl
Log:
Factor out some duplication into a common file.
* tools/base-html-stylesheet.xsl:
New file, containing bulk of old content from...
* tools/html-stylesheet.xsl:
* tools/chunk-stylesheet.xsl:
...these, which <xsl:include> the base file.
Copied: trunk/src/tools/base-html-stylesheet.xsl (from r1294, trunk/src/tools/html-stylesheet.xsl)
==============================================================================
--- trunk/src/tools/html-stylesheet.xsl (original)
+++ trunk/src/tools/base-html-stylesheet.xsl Tue May 17 09:45:14 2005
@@ -1,7 +1,5 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
- <xsl:import href="xsl/xhtml/docbook.xsl"/>
-
<xsl:param name="html.stylesheet">styles.css</xsl:param>
<xsl:param name="toc.section.depth">3</xsl:param>
<xsl:param name="annotate.toc">0</xsl:param>
Modified: trunk/src/tools/chunk-stylesheet.xsl
==============================================================================
--- trunk/src/tools/chunk-stylesheet.xsl (original)
+++ trunk/src/tools/chunk-stylesheet.xsl Tue May 17 09:45:14 2005
@@ -2,27 +2,6 @@
<xsl:import href="xsl/xhtml/chunk.xsl"/>
- <xsl:param name="html.stylesheet">styles.css</xsl:param>
- <xsl:param name="toc.section.depth">3</xsl:param>
- <xsl:param name="annotate.toc">0</xsl:param>
-
- <xsl:template match="sect1" mode="toc">
- <xsl:param name="toc-context" select="."/>
- <xsl:call-template name="subtoc">
- <xsl:with-param name="toc-context" select="$toc-context"/>
- <xsl:with-param name="nodes"
- select="sect2|refentry|bridgehead[$bridgehead.in.toc != 0]"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="sect2" mode="toc">
- <xsl:param name="toc-context" select="."/>
-
- <xsl:call-template name="subtoc">
- <xsl:with-param name="toc-context" select="$toc-context"/>
- <xsl:with-param name="nodes"
- select="sect3|refentry|bridgehead[$bridgehead.in.toc != 0]"/>
- </xsl:call-template>
- </xsl:template>
+ <xsl:include href="base-html-stylesheet.xsl"/>
</xsl:stylesheet>
More information about the svnbook-dev
mailing list