DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Table of Contents PDF Output
-
thekilla20 July 9, 2013 at 3:37 pm
Table of Contents PDF Output
July 9, 2013 at 3:37 pmParticipants 1Replies 2Last Activity 9 years, 6 months agoHello,
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:
to
but that does not work.
Any help would be much appreciated.
severin.foreman July 9, 2013 at 4:28 pm
Reply to: Table of Contents PDF Output
July 9, 2013 at 4:28 pmSections 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.
Regards,
Severinthekilla20 July 10, 2013 at 1:31 pm
Reply to: Table of Contents PDF Output
July 10, 2013 at 1:31 pmThank you,
I do have one inquiry though, when you mean topics nested in topics say I have
content 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. -
AuthorPosts
- You must be logged in to reply to this topic.