[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: two toc:s in an article
Hi, I have an article that at the end points to other articles, so at the end I wanted to put a manual toc using the toc tag. I can generate the manual toc without the toc on article <xsl:param name="process.source.toc" select="1"/> <xsl:param name="generate.toc"> appendix nop article *toc*,title part nop preface nop qandadiv nop qandaset nop reference toc,title section toc set toc </xsl:param> Now I have a section or two in the article and I want that toc for the article, but the manual toc is for something else, outside of the current document. (That is why it was manually put in) /usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml-1_1/toc.xsl line 77 seems to be the test that I am failing. <!-- Do not output the toc element if one is already generated by the use of $generate.toc parameter, or if generating a source toc is turned off --><xsl:if test="not(contains($toc.params, 'toc')) and ($process.source.toc != 0 or $process.empty.source.toc != 0)">
Is there a special rational that one can not have a manual tagged toc if there is an automatic toc ? Can the stylesheets only handle one toc at the time ? (I did remove the first part of the test and that also failed)
Eg I would like 2 toc:s on the page. The article toc with the section titles, and my manually written toc pointing to other articles.
Is there a better way of doing this ? I am stuck with one article, pointing to articles at the moment. /Fred
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]