OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] two toc:s in an article


Your manual toc doesn't sound much like a TOC. Isn't it really just a set of cross-references or links that you can put in an itemized list or some other structure. If it doesn't express the contents of its container, how is it a table of contents? 

If that doesn't make sense to you, then show us what your manual TOC looks like exactly, so we can comment further. I don't understand why you'd want to use a <toc> element for this manual stuff.
--Aaron


On Thu, Jan 24, 2013 at 3:54 AM, Fredrik Unger <fred@tree.se> wrote:
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


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




--
--------------------------------------
Aaron DaMommio: Husband, father, writer, juggler, and expert washer of dishes.
- My blog: http://aarondamommio.blogspot.com
- Need a juggler?  http://amazingaaronjuggler.blogspot.com/
=======================================


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]