summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2003-06-29 23:29:16 +0000
committerShaun McCance <shaunm@src.gnome.org>2003-06-29 23:29:16 +0000
commit9d0c8015dfe8c9d4aeeb1641aa1ae367fb3f6615 (patch)
treeb1e984c05417c9c436f58e6a39b166c89c23f8ab
parent6d3893c205d9b4ecfd9f5f3292340566f64aa97c (diff)
downloadyelp-9d0c8015dfe8c9d4aeeb1641aa1ae367fb3f6615.tar.gz
stylesheets/yelp-customization.xsl - Transparently thread over parts iff
* stylesheets/yelp-customization.xsl - Transparently thread over parts iff there is no id attribute
-rw-r--r--stylesheets/ChangeLog6
-rw-r--r--stylesheets/yelp-customization.xsl6
2 files changed, 9 insertions, 3 deletions
diff --git a/stylesheets/ChangeLog b/stylesheets/ChangeLog
index 898701a1..721ad3bd 100644
--- a/stylesheets/ChangeLog
+++ b/stylesheets/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-29 Shaun Mccance <shaunm@wolfram.com>
+
+ * yelp-customization.xsl: Transparently thread parts when there is
+ no id attribute, rather than when there's only one chapter, for
+ consistancy with ScrollKeeper.
+
2003-06-16 Eric Baudais <drake@gnome.org>
* yelp-custom.xsl: Applied Alexander's patch for bug #100476.
diff --git a/stylesheets/yelp-customization.xsl b/stylesheets/yelp-customization.xsl
index 32cd381e..4dc68e79 100644
--- a/stylesheets/yelp-customization.xsl
+++ b/stylesheets/yelp-customization.xsl
@@ -404,7 +404,7 @@
</a></td>
<xsl:choose>
<!-- Hackery for the User's Guide, which I don't like -->
- <xsl:when test="(local-name(.) = 'part') and (count(chapter) = 1)">
+ <xsl:when test="(local-name(.) = 'part') and not(@id)">
<xsl:call-template name="yelp.next.link.cell">
<xsl:with-param name="object"
select="yelp:get-divisions(yelp:get-divisions(.)[1])[1]"/>
@@ -793,7 +793,7 @@
</b></p>
<xsl:choose>
<!-- Hackery for the User's Guide, which I don't like -->
- <xsl:when test="(local-name(.) = 'part') and (count(chapter) = 1)">
+ <xsl:when test="(local-name(.) = 'part') and not(@id)">
<xsl:for-each select="yelp:get-divisions(.)">
<xsl:apply-templates select="yelp:get-divisions(.)" mode="toc"/>
</xsl:for-each>
@@ -813,7 +813,7 @@
<xsl:choose>
<!-- Hackery for the User's Guide, which I don't like -->
- <xsl:when test="(local-name(.) = 'part') and (count(chapter) = 1)">
+ <xsl:when test="(local-name(.) = 'part') and not(@id)">
<xsl:for-each select="yelp:get-divisions(yelp:get-divisions(.))">
<xsl:call-template name="yelp.component.chunk">
<xsl:with-param name="depth" select="1"/>