diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2004-02-07 00:54:42 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2004-02-07 00:54:42 +0000 |
commit | e3f62495e10097219432b5c67cb5acb6cfdc3c25 (patch) | |
tree | fd4a806757557e0ec2c6e437c629b9f23bb67485 /stylesheets | |
parent | 64ded17798a30203ba36d7b863555d8b96b39595 (diff) | |
download | yelp-e3f62495e10097219432b5c67cb5acb6cfdc3c25.tar.gz |
- Free the transformation context. - The cache extension element isn't
* src/yelp-db-pager.c:
* stylesheets/db2html-header.xsl:
- Free the transformation context.
- The cache extension element isn't working, but I hooked it in so I have
more oppurtunity to let GTK+ update itself.
* stylesheets/db2html-navbar.xsl:
- Speed improvement to navbar.prev.
Diffstat (limited to 'stylesheets')
-rw-r--r-- | stylesheets/db2html-header.xsl | 13 | ||||
-rw-r--r-- | stylesheets/db2html-navbar.xsl | 6 |
2 files changed, 15 insertions, 4 deletions
diff --git a/stylesheets/db2html-header.xsl b/stylesheets/db2html-header.xsl index d612884b..06d263cf 100644 --- a/stylesheets/db2html-header.xsl +++ b/stylesheets/db2html-header.xsl @@ -1,6 +1,8 @@ <?xml version='1.0'?><!-- -*- Mode: fundamental; tab-width: 3 -*- --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:yelp="http://www.gnome.org/yelp/ns" + extension-element-prefixes="yelp" version="1.0"> <!-- == header.prefix ====================================================== --> @@ -369,7 +371,16 @@ <xsl:template name="header.number"> <xsl:param name="node" select="."/> - <xsl:apply-templates mode="header.number.mode" select="$node"/> + <xsl:choose> + <xsl:when test="element-available('yelp:cache')"> + <yelp:cache key="header.number"> + <xsl:apply-templates mode="header.number.mode" select="$node"/> + </yelp:cache> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates mode="header.number.mode" select="$node"/> + </xsl:otherwise> + </xsl:choose> </xsl:template> <xsl:template mode="header.number.mode" match="appendix"> diff --git a/stylesheets/db2html-navbar.xsl b/stylesheets/db2html-navbar.xsl index e195e2e2..5a183ca6 100644 --- a/stylesheets/db2html-navbar.xsl +++ b/stylesheets/db2html-navbar.xsl @@ -95,18 +95,18 @@ <xsl:value-of select="'titlepage'"/> </xsl:if> </xsl:when> - <xsl:when test="$node/preceding-sibling::*[&is-division;]"> + <xsl:when test="$node/preceding-sibling::*[1][&is-division;]"> <xsl:choose> <xsl:when test="$depth_chunk < $chunk_depth"> <xsl:call-template name="navbar.last"> <xsl:with-param name="node" - select="$node/preceding-sibling::*[&is-division;][1]"/> + select="$node/preceding-sibling::*[1]"/> <xsl:with-param name="depth_chunk" select="$depth_chunk"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of - select="$node/preceding-sibling::*[&is-division;][1]/@id"/> + select="$node/preceding-sibling::*[1]/@id"/> </xsl:otherwise> </xsl:choose> </xsl:when> |