It's all about the answers!

Ask a question

How to keep DNG module heading levels in RPE Word output?


Tali Rabetti (111820) | asked Oct 09 '16, 5:56 a.m.
I have created a basic RPE template that suppose to keep heading levels as they are in my DNG module.
first try:
 -  Style name: dataSource/artifact/moduleContext/contextBinding/depth. The heading levels in the generated document are totally different then what is in the DNG module. I checked the URI xml and the depth is correct there.
Second try:
- Heading level offset: dataSource/artifact/moduleContext/contextBinding/depth
- Style name: 1
This works but I am getting heading level promoted by 1.
third try:
- Heading level offset: using script - depth - 1
- Style name: 1
Somehow the result is messed up, I get an error "heading level 12 is not defined" although heading level suppose to be 5.
What is the right way to do it?
Thanks!

Accepted answer


permanent link
David Clark (2341352) | answered Oct 10 '16, 8:26 a.m.
 Tali,
The following works for me.. (indentation indicates nesting)
Container > dataSource/artifact/moduleContext/contextBinding
   Container > dataSource/artifact/collaboration/attribute/objectType   - required to pull out attribute "isHeading"
   Container > [condition:: isHeading == "true"]
      Paragraph > set the style name to: "dataSource/artifact/moduleContext/contextBinding/depth" - I see that was done
         Text > dataSource/artifact/moduleContext/contextBinding/title
Tali Rabetti selected this answer as the correct answer

Comments
Tali Rabetti commented Oct 13 '16, 6:32 a.m.

Thanks for your answer! It showed me which is the right way. The problem was that as part of the trials I have mistakenly set the HeadingLevel of the Text part instead of the paragraph, and was not aware of it. This is what messed up the results.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.