DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › TopLeaf: Auto-generate a mini-Toc of the following titles?
-
TripleDoh June 5, 2014 at 3:28 pm
TopLeaf: Auto-generate a mini-Toc of the following titles?
June 5, 2014 at 3:28 pmParticipants 2Replies 3Last Activity 8 years, 7 months ago(TopLeaf 7.6.025)
Is it possible to generate a mini-toc after a topic that lists the heading (title) of the next topics. Stopping when the file type changes back to 'topic'.
The file tagged as 'topic' with children tagged as 'repair'.
topic
repair (A)
repair (B)
repair (C)
So, in the pdf output you would see the title & content of the topic, then a list of the titles of the repair topics (with or without hyperlink), then each repair topic and the content. And then stop. (Then there would be this structure again, and so on). So it only lists the immediate repair topics that follow.Is there an easy way to do this?
Help appreciated!
tonys June 9, 2014 at 11:28 pm
Reply to: TopLeaf: Auto-generate a mini-Toc of the following titles?
June 9, 2014 at 11:28 pm***NOTE***
This response has been delayed for several days because the forum has been rejecting my posts. If you don't get a reply in a reasonable time, please contact [email protected].
***********The general approach would be to generate an XREF for each of the “repair” topics that included the id of the parent topic on the first pass. On the second pass the mapping for the topic could collect these and emit the appropriate content.
Anything more specific would require an understanding of how you are using DITA to achieve this, so contact [email protected] if you need more assistance.
[email protected] August 28, 2014 at 2:44 pm
Reply to: TopLeaf: Auto-generate a mini-Toc of the following titles?
August 28, 2014 at 2:44 pmCould you provide a “recipe” or detailed example of how this might be done in the base DITA template provided with TopLeaf? It would be quite useful to see an possible implementation first.
Thanks!
R Palmer
-
AuthorPosts
- You must be logged in to reply to this topic.