]> granicus.if.org Git - docbook-dsssl/commitdiff
Make sure chunked ToC/LoT goes in the right base.dir
authorNorman Walsh <ndw@nwalsh.com>
Wed, 4 Sep 2002 11:05:13 +0000 (11:05 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 4 Sep 2002 11:05:13 +0000 (11:05 +0000)
xsl/html/chunk.xsl

index fc1876e58980b0e193dfeb88ae34c0413b84ad15..2684c5f09e96c27b1ab488f4139b5d8c65b04440 100644 (file)
       <xsl:when test="$chunk.tocs.and.lots != 0 and not(parent::*)">
         <xsl:call-template name="write.chunk">
           <xsl:with-param name="filename">
-            <xsl:apply-templates select="." mode="recursive-chunk-filename"/>
-            <xsl:text>-toc</xsl:text>
-            <xsl:value-of select="$html.ext"/>
+            <xsl:call-template name="make-relative-filename">
+              <xsl:with-param name="base.dir" select="$base.dir"/>
+              <xsl:with-param name="base.name">
+                <xsl:call-template name="dbhtml-dir"/>
+                <xsl:apply-templates select="." mode="recursive-chunk-filename"/>
+                <xsl:text>-toc</xsl:text>
+                <xsl:value-of select="$html.ext"/>
+              </xsl:with-param>
+            </xsl:call-template>
           </xsl:with-param>
           <xsl:with-param name="content">
             <xsl:call-template name="chunk-element-content">