DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Table of Contents PDF Output

  • thekilla20

    Table of Contents PDF Output

    Participants 1
    Replies 2
    Last Activity 9 years, 6 months ago


    I'm generating my pdf output from a dita general topic using Xmetal enhanced pdf via render x and my table of contents and bookmarks are being improperly generated.

    I'm seeing that the table of contents and bookmarks are being generated only based on the title (topic/title) that I have in my xml file and I'm trying to have them based off of the sections (topic/body/section) in my document.

    I tried modifying the xm_bookmarks.xs filel on line 49 (in the C:Program Files (x86)Common FilesXMetaL SharedDITA_OTpluginsxmfoCustomizationfoxsl folder) by changing:


    but that does not work.

    Any help would be much appreciated.



    Reply to: Table of Contents PDF Output

    Sections are not designed to contribute to navigation. There have been several discussions about it on the Yahoo dita-users list. The recommended DITA best practice is to use topics nested in maps, or alternately topics nested within other topics.

    Your XPath expression below doesn't select anything because there is no element where the class attribute contains “topic/body/section”. You could try something like this, but I cannot say whether it will work, because I don't know the complete context of where you are using your custom code.




    Reply to: Table of Contents PDF Output

    Thank you,

    I do have one inquiry though, when you mean topics nested in topics say I have




    Would that be considered a nested topic? Or would it require having

    being tagged as ? I ask because I noticed the topleaf plugin itself does create a table of contents based on sections.


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

Lost Your Password?