summaryrefslogtreecommitdiff
path: root/stylesheets
diff options
context:
space:
mode:
authorBrent Smith <gnome@nextreality.net>2006-02-12 05:06:06 +0000
committerBrent Smith <bmsmith@src.gnome.org>2006-02-12 05:06:06 +0000
commit3d7170fe64f4777ac00fc191d58494330c38efd2 (patch)
tree39648c8882f282c7c0222af002b861edb4d743b2 /stylesheets
parent8e957bb8825367c729a17e3891215fe14ba0f588 (diff)
downloadyelp-3d7170fe64f4777ac00fc191d58494330c38efd2.tar.gz
Small speedup achieved by only reading the TOC stylesheet once small
2006-02-11 Brent Smith <gnome@nextreality.net> * src/yelp-toc-pager.c: (toc_process_pending), (process_xslt), (process_cleanup): Small speedup achieved by only reading the TOC stylesheet once * stylesheets/toc2html.xsl: small speedups
Diffstat (limited to 'stylesheets')
-rw-r--r--stylesheets/toc2html.xsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/stylesheets/toc2html.xsl b/stylesheets/toc2html.xsl
index 15a81b14..184c4833 100644
--- a/stylesheets/toc2html.xsl
+++ b/stylesheets/toc2html.xsl
@@ -122,7 +122,7 @@
<div class="leftbar">
</div>
<div class="rightbar">
- <xsl:if test="toc[.//doc] or @id = 'ManInfoHolder'">
+ <xsl:if test="toc[.//doc[1]] or @id = 'ManInfoHolder'">
<div class="tocs">
<ul>
<xsl:for-each select="toc[../@id = 'index' or ../@id = 'ManInfoHolder' or .//doc]">
@@ -137,7 +137,7 @@
</ul>
</div>
</xsl:if>
- <xsl:if test="doc">
+ <xsl:if test="doc[1]">
<div class="docs">
<dl>
<xsl:for-each select="doc">