summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2003-07-31 22:28:39 +0000
committerShaun McCance <shaunm@src.gnome.org>2003-07-31 22:28:39 +0000
commit9123385d9415c176d6d441f81e85c0c747d5ddea (patch)
treeb5b24b00ce00be39a85eb92807096f604ffa468f
parentbe0fd70e19535756a039e73903edac24b7d66817 (diff)
downloadyelp-9123385d9415c176d6d441f81e85c0c747d5ddea.tar.gz
- Fix for the thing where parts got two TOCs.
* stylesheets/yelp-customization.xsl: - Fix for the thing where parts got two TOCs.
-rw-r--r--stylesheets/ChangeLog5
-rw-r--r--stylesheets/yelp-customization.xsl36
2 files changed, 25 insertions, 16 deletions
diff --git a/stylesheets/ChangeLog b/stylesheets/ChangeLog
index f8c328f9..981f0328 100644
--- a/stylesheets/ChangeLog
+++ b/stylesheets/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-31 Shaun McCance <shaunm@wolfram.com>
+
+ * yelp-customization.xsl:
+ - Fix for the thing where parts got two TOCs.
+
2003-07-29 Shaun McCance <shaunm@wolfram.com>
* yelp-functions.xsl:
diff --git a/stylesheets/yelp-customization.xsl b/stylesheets/yelp-customization.xsl
index 7d8707bc..8d148aab 100644
--- a/stylesheets/yelp-customization.xsl
+++ b/stylesheets/yelp-customization.xsl
@@ -603,22 +603,26 @@
<div class="{local-name(.)}">
<xsl:call-template name="yelp.title"/>
<xsl:apply-templates select="yelp:get-content(.)"/>
- <xsl:choose>
- <xsl:when test="($depth &lt; $yelp_max_chunk_depth)
- and (count(yelp:get-divisions(.)) &gt; 0)">
- <div class="toc">
- <p><b>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key">TableofContents</xsl:with-param>
- </xsl:call-template>
- </b></p>
- <xsl:apply-templates select="yelp:get-divisions(.)" mode="toc"/>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="yelp:get-divisions(.)"/>
- </xsl:otherwise>
- </xsl:choose>
+ <!-- Don't make TOC for part and reference, because nwalsh's
+ stylesheets automatically stick one in for partintro. -->
+ <xsl:if test="not(self::part | self::reference)">
+ <xsl:choose>
+ <xsl:when test="($depth &lt; $yelp_max_chunk_depth)
+ and (count(yelp:get-divisions(.)) &gt; 0)">
+ <div class="toc">
+ <p><b>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">TableofContents</xsl:with-param>
+ </xsl:call-template>
+ </b></p>
+ <xsl:apply-templates select="yelp:get-divisions(.)" mode="toc"/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="yelp:get-divisions(.)"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:if>
</div>
<xsl:call-template name="yelp.navbar.bottom">
<xsl:with-param name="node" select="."/>