DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion TopLeaf: Auto-generate a mini-Toc of the following titles?

  • TripleDoh

    TopLeaf: Auto-generate a mini-Toc of the following titles?

    Participants 2
    Replies 3
    Last Activity 8 years, 3 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!

    Reply

    tonys

    Reply to: TopLeaf: Auto-generate a mini-Toc of the following titles?

    ***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.

    Reply

    [email protected]

    Reply to: TopLeaf: Auto-generate a mini-Toc of the following titles?

    Could 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

    Reply

    tonys

    Reply to: TopLeaf: Auto-generate a mini-Toc of the following titles?

    I'll log an enhancement request for an example in the demonstration stylesheets.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support