]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bugs associated with toc-context parameter in division.toc
authorNorman Walsh <ndw@nwalsh.com>
Thu, 23 Jan 2003 12:08:22 +0000 (12:08 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 23 Jan 2003 12:08:22 +0000 (12:08 +0000)
xsl/fo/autotoc.xsl

index b17a5b7b3ecc3171953fc323caa44409a5f79551..bcc94cb086fa0f8153b7c96bdbea9d535c10aa3b 100644 (file)
 <xsl:template name="division.toc">
   <xsl:param name="toc-context" select="."/>
 
-  <xsl:variable name="id">
-    <xsl:call-template name="object.id"/>
-  </xsl:variable>
-
   <xsl:variable name="cid">
     <xsl:call-template name="object.id">
       <xsl:with-param name="object" select="$toc-context"/>
   </xsl:variable>
 
   <xsl:variable name="nodes"
-                select="part|reference|preface
-                        |chapter|appendix
-                        |article
-                        |bibliography|glossary|index"/>
+                select="$toc-context/part
+                        |$toc-context/reference
+                        |$toc-context/preface
+                        |$toc-context/chapter
+                        |$toc-context/appendix
+                        |$toc-context/article
+                        |$toc-context/bibliography
+                        |$toc-context/glossary
+                        |$toc-context/index"/>
+
   <xsl:if test="$nodes">
-    <fo:block id="toc...{$id}"
+    <fo:block id="toc...{$cid}"
               xsl:use-attribute-sets="toc.margin.properties">
       <xsl:call-template name="table.of.contents.titlepage"/>
       <xsl:apply-templates select="$nodes" mode="toc">