aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2006-05-21 14:27:06 +0000
committerTim Yamin <plasmaroo@gentoo.org>2006-05-21 14:27:06 +0000
commit43362e13772714caeccc98bc9967158c32047cca (patch)
tree7825bfc880c6c5a63dc78a02c890e293ec95350e
parentXSL Namespace fixes so the output validates correctly. (diff)
downloaddevmanual-43362e13772714caeccc98bc9967158c32047cca.tar.gz
devmanual-43362e13772714caeccc98bc9967158c32047cca.tar.bz2
devmanual-43362e13772714caeccc98bc9967158c32047cca.zip
Fixup TOC extraction bug.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/devmanual/trunk@54 176d3534-300d-0410-8db8-84e73ed771c3
-rw-r--r--devbook.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/devbook.xsl b/devbook.xsl
index b32729a..d4a7a1b 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -382,7 +382,7 @@
<xsl:with-param name="extraction_counting" select="1"/>
</xsl:call-template>
</xsl:variable>
- <xsl:variable name="extraction_counter" select="count(exslt:node-set($extraction_counter_node)//count[@value != 0]) + count(document(concat($path, @href, 'text.xml'))//*[name()=$extraction])"/>
+ <xsl:variable name="extraction_counter" select="count(exslt:node-set($extraction_counter_node)//*[@value != 0]) + count(document(concat($path, @href, 'text.xml'))//*[name()=$extraction])"/>
<xsl:if test="string($extraction) = '' or $extraction_counter > 0">
<li>
<a class="reference" href="{concat($path_rel, @href, 'index.html')}"><xsl:value-of select="document(concat($path, @href, 'text.xml'))/guide/chapter[1]/title"/></a>