diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2003-07-21 23:55:48 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2003-07-21 23:55:48 +0000 |
commit | 21a5ac34444a7e8bd75fce4a136aeead7e88f22b (patch) | |
tree | dc985aa201451c0f66f92a63f733d48c9bb36e19 | |
parent | d56f33899e468ccf4bd4eb0b29007a21bece4398 (diff) | |
download | yelp-21a5ac34444a7e8bd75fce4a136aeead7e88f22b.tar.gz |
- Fix dumb bug where singleton subsections didn't get processed.
* stylesheets/yelp-customization.xsl:
* stylesheets/yelp-functions.xsl:
- Fix dumb bug where singleton subsections didn't get processed.
-rw-r--r-- | stylesheets/ChangeLog | 6 | ||||
-rw-r--r-- | stylesheets/yelp-customization.xsl | 8 | ||||
-rw-r--r-- | stylesheets/yelp-functions.xsl | 2 |
3 files changed, 11 insertions, 5 deletions
diff --git a/stylesheets/ChangeLog b/stylesheets/ChangeLog index bc8d0c23..ef8fd61e 100644 --- a/stylesheets/ChangeLog +++ b/stylesheets/ChangeLog @@ -1,6 +1,12 @@ 2003-07-21 Shaun McCance <shaunm@wolfram.com> * yelp-customization.xsl: + * yelp-functions.xsl: + - Fix dumb bug where singleton subsections didn't get processed. + +2003-07-21 Shaun McCance <shaunm@wolfram.com> + + * yelp-customization.xsl: - Revert current to 1.48 until I can investigate more thoroughly. - Put in compatibility with old param names until I can get the changes pushed through in C. diff --git a/stylesheets/yelp-customization.xsl b/stylesheets/yelp-customization.xsl index 032d3748..d989ff74 100644 --- a/stylesheets/yelp-customization.xsl +++ b/stylesheets/yelp-customization.xsl @@ -609,7 +609,7 @@ <xsl:apply-templates select="yelp:get-content(.)"/> <xsl:choose> <xsl:when test="($depth < $yelp_max_chunk_depth) - and (count(yelp:get-divisions(.)) > 1)"> + and (count(yelp:get-divisions(.)) > 0)"> <div class="toc"> <p><b> <xsl:call-template name="gentext"> @@ -619,9 +619,9 @@ <xsl:apply-templates select="yelp:get-divisions(.)" mode="toc"/> </div> </xsl:when> - <xsl:when test="count(yelp:get-divisions(.)) > 1"> + <xsl:otherwise> <xsl:apply-templates select="yelp:get-divisions(.)"/> - </xsl:when> + </xsl:otherwise> </xsl:choose> </div> <xsl:call-template name="yelp.navbar.bottom"> @@ -634,7 +634,7 @@ </xsl:if> <xsl:if test="($depth < $yelp_max_chunk_depth) - and (count(yelp:get-divisions(.)) > 1)"> + and (count(yelp:get-divisions(.)) > 0)"> <xsl:for-each select="yelp:get-divisions(.)"> <xsl:call-template name="yelp.component.chunk"> <xsl:with-param name="depth" select="$depth + 1"/> diff --git a/stylesheets/yelp-functions.xsl b/stylesheets/yelp-functions.xsl index 287cbc9b..f208980f 100644 --- a/stylesheets/yelp-functions.xsl +++ b/stylesheets/yelp-functions.xsl @@ -39,7 +39,7 @@ <xsl:choose> <xsl:when test=" (yelp:get-depth($node) < $yelp_max_chunk_depth) and - (count(yelp:get-divisions($node)[@id]) > 1)"> + (count(yelp:get-divisions($node)[@id]) > 0)"> <func:result select="yelp:get-divisions($node)[@id][1]"/> </xsl:when> <xsl:when test="$node/following-sibling::*[@id][yelp:is-division(.)]"> |