This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [docbook-apps] Html chunked and separate table of contents


> -----Original Message-----
> From: Michèle Garoche 
> 
> I've a book made of several xml files processed with docbook 4.4, 
> 1.68.1 xsl stylesheets, xsltproc and saxon 6.5.3, with some 
> customization.
> 
> When I produce a chunked  html output and try to use the 
> chunk.tocs.and.lots parameter with value 1, it indeed produces a 
> separate toc, but the name of the produced file: bk01-toc.html is not 
> the same as the name used as a link on the title page: 
> index.html-toc.html.
> 
> Is there a way to avoid this?


Yes, it is (it's a bug). The incorrect link target is produced by this code
in chunk-common.xsl (in the template named "footer.navigation"):

<xsl:attribute name="href">
         <xsl:apply-templates select="/*[1]"
                 mode="recursive-chunk-filename"/>
         <xsl:text>-toc</xsl:text>
         <xsl:value-of select="$html.ext"/>
</xsl:attribute>


Modify the apply-templates part, like this:

<xsl:attribute name="href">
       <xsl:apply-templates select="/*[1]"
                 mode="recursive-chunk-filename">
          <xsl:with-param name="recursive" select="true()"/>  <!--
xsl:with-param added -->
       </xsl:apply-templates>
       <xsl:text>-toc</xsl:text>
       <xsl:value-of select="$html.ext"/>
</xsl:attribute>


and the link should work.


/MJ



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]