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.