DITA and XMetaL Discussion
thekilla20 July 9, 2013 at 3:37 pm
Table of Contents PDF OutputJuly 9, 2013 at 3:37 pmParticipants 1Replies 2Last Activity 9 years, 3 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.severin.foreman July 9, 2013 at 4:28 pm
Reply to: Table of Contents PDF OutputJuly 9, 2013 at 4:28 pm
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.
Severinthekilla20 July 10, 2013 at 1:31 pm
Reply to: Table of Contents PDF OutputJuly 10, 2013 at 1:31 pm
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.