Pages: 1
Author Topic: TOPLEAF: Table of Contents Selection  (Read 1890 times)

Posts: 7

« on: July 22, 2013, 03:15:31 AM »

Dear All,

This is what my TOC tags looks like:

In the "map" tag, pre-content -

<!-- note change of context -->
<stack var="Context" string="{Context}M"/>

<!-- create link target -->
<Idref-Current ref="{@id}"/>

<!-- print title page and table of contents -->
<set var="DITA-mainbooktitle" copy="@title"/>

In "indexlist" tag, pre-content -

<bookmark level="1">{L-Index}</bookmark>
<readgen type="index" passes="3"/>

In the "IndexTitle" tag, pre-content -


In "toc" tage pre-content -

<Title level="tocindex">{L-TableofContents}</Title>
<readgen type="toc" passes="3"/>

In "%IndexTitle" custom marker, pre-content -


In "$document" Tag, pre-content should have -

<!-- sort of autogenerated index -->
<index-sort see-level="8" seealso-level="9"/>

<!-- set indent for level 2 ToC entries: should be zero unless
     entry is inside a chapter/part -->
<set var="T2indent" value="0"/>

<set var="L-TableofContents" string="Table of Contents"/>

This worked fine for me with PDF topic links, I use Xmetal 6.0 enterprise with TopLeaf 7.6

The only problem I get is, if in a single xml, I have 1 main topic and 2 subtopics then all 3 are displayed in TOC even if I don't need the subtopics to be listed. I need help to be able to customize TOC as per my requirement. If the subtopics are listed as demoted entries, it would still be ok, but even that is not happening, all entries are displayed as Main Titles.

Any help would be appreciated.


JustSystems Partner

Posts: 80

« Reply #1 on: July 23, 2013, 05:06:21 PM »

My guess is that you don't have mappings to handle nested topics, but I can't be sure just from the information here. Note that the stylesheet that came with the old version 6 plugin did not correctly handle nested topics. The sample DITA stylesheets included in the current version of TopLeaf show how to easily allow for nested topics.

Please contact so we can discuss what information we need to provide a solution.
Pages: 1
Jump to:  

email us