Topics not displaying in pdf TOC / bookmarks
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 5
- Joined: Fri Aug 14, 2009 4:26 pm
Topics not displaying in pdf TOC / bookmarks
Hi,
I'm not sure this is an Oxygen issue but maybe you can help.
I'm transforming a DITA map into a pdf using PDF - Idiom FO transformation plugin.
The map I'm transforming contains 3 levels of information, topicrefs as well as topicheads.
It happens that only topicheads display in the TOC and in the PDF bookmarks.
What is it I'm doing wrong?
Additional information:
<topicref href="C_VirtualOffice.xml" audience="user admin" toc="yes" print="yes"/>
<topichead navtitle="Virtual Office Management Function" audience="admin" toc="yes" print="yes">
+++<topicref href="T_VirtualOfficesManagementFunction_Access.xml" audience="admin" toc="yes" print="yes"/>
+++<topichead navtitle="Virtual Office Management Function Tabs Description" toc="yes" print="yes">
++++++<topicref href="C_VirtualOffice_VOFTabDescription.xml" audience="admin" toc="yes" print="yes"/>
++++++<topicref href="C_VirtualOffice_VOFAllocationTabDescription.xml" audience="admin" toc="yes" print="yes"/>
++++++<topicref href="C_VirtualOffice_VOFIconTabDescription.xml" audience="admin" toc="yes" print="yes"/>
+++<topicref href="../GUI/T_OpenClose_NavigationView.xml" toc="yes" print="yes"/>
Thanks for helping me.
claudine
I'm not sure this is an Oxygen issue but maybe you can help.
I'm transforming a DITA map into a pdf using PDF - Idiom FO transformation plugin.
The map I'm transforming contains 3 levels of information, topicrefs as well as topicheads.
It happens that only topicheads display in the TOC and in the PDF bookmarks.
What is it I'm doing wrong?
Additional information:
- - I'm running <oXygen/> XML Editor 10.3, build 2009070117.
- - When I transform to XHTML or HTML help, the TOC is OK; all topics display.
- - Surprisingly, the last topicref in my example (<topicref href="../GUI/T_OpenClose_NavigationView.xml" toc="yes" print="yes"/>) displays properly.
<topicref href="C_VirtualOffice.xml" audience="user admin" toc="yes" print="yes"/>
<topichead navtitle="Virtual Office Management Function" audience="admin" toc="yes" print="yes">
+++<topicref href="T_VirtualOfficesManagementFunction_Access.xml" audience="admin" toc="yes" print="yes"/>
+++<topichead navtitle="Virtual Office Management Function Tabs Description" toc="yes" print="yes">
++++++<topicref href="C_VirtualOffice_VOFTabDescription.xml" audience="admin" toc="yes" print="yes"/>
++++++<topicref href="C_VirtualOffice_VOFAllocationTabDescription.xml" audience="admin" toc="yes" print="yes"/>
++++++<topicref href="C_VirtualOffice_VOFIconTabDescription.xml" audience="admin" toc="yes" print="yes"/>
+++<topicref href="../GUI/T_OpenClose_NavigationView.xml" toc="yes" print="yes"/>
Thanks for helping me.
claudine
-
- Posts: 9441
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Topics not displaying in pdf TOC / bookmarks
Hi Claudine,
Sorry for the delay.
In the OXYGEN_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/topic2fo_shell_1.0.xsl there is a parameter called tocMaximumLevel. Its default value is 4. Just increase it to a larger value and all topic refs should appear in the TOC.
About the last topic ref ../GUI/T_OpenClose_NavigationView.xml, of course it is not a good idea that it is located in a folder outside the map file's parent directory and you are probably getting a DOTJ036W warning in the Oxygen console for it, but as long as it works ...
Regards,
Radu
Sorry for the delay.
In the OXYGEN_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/topic2fo_shell_1.0.xsl there is a parameter called tocMaximumLevel. Its default value is 4. Just increase it to a larger value and all topic refs should appear in the TOC.
About the last topic ref ../GUI/T_OpenClose_NavigationView.xml, of course it is not a good idea that it is located in a folder outside the map file's parent directory and you are probably getting a DOTJ036W warning in the Oxygen console for it, but as long as it works ...

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 5
- Joined: Fri Aug 14, 2009 4:26 pm
Re: Topics not displaying in pdf TOC / bookmarks
Hi Radu,
Thanks for the answer.
I've set the tocMaximumLevel parameter to '10' but with no success whatsoever
For info, I forgot that in my first message, I'm using source control (ClearCase) and moved DITA OT to ClearCase. I've modified the path to DITA OT so I've set the path back to Oxygen's defaults, modified the value, but with no success either.
About the last topic in the TOC, I got the warning you mention but bypassed it using generate.copy.outer set to 3 (DITA scenario). Not sure this is right to do this but that the solution I've found on the net. I'm still trying to find a way to organize my projects and files and learning DITA with trials and errors
claudine
Thanks for the answer.
I've set the tocMaximumLevel parameter to '10' but with no success whatsoever

For info, I forgot that in my first message, I'm using source control (ClearCase) and moved DITA OT to ClearCase. I've modified the path to DITA OT so I've set the path back to Oxygen's defaults, modified the value, but with no success either.
About the last topic in the TOC, I got the warning you mention but bypassed it using generate.copy.outer set to 3 (DITA scenario). Not sure this is right to do this but that the solution I've found on the net. I'm still trying to find a way to organize my projects and files and learning DITA with trials and errors

claudine
-
- Posts: 9441
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Topics not displaying in pdf TOC / bookmarks
Hi Claudine,
Setting the tocMaximumLevel parameter in the stylesheet I mentioned to a higher value worked for me (using the sample hierarchy you sent).
Now, I am not entirely sure that you are editing the stylesheet from the DITA Open Toolkit you are currently using for publishing output.
Maybe you should also try setting it in the OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/topic2fo_shell.xsl stylesheet.
Probably the DITA Open Toolkit Users List is a also good place to find more details about fixing this.
http://groups.yahoo.com/group/dita-users/
You can also send us a sample project (map + topics) to reproduce the problem and we'll look into it.
The email address can be found here:
http://www.oxygenxml.com/techSupport.html
Regards,
Radu
Setting the tocMaximumLevel parameter in the stylesheet I mentioned to a higher value worked for me (using the sample hierarchy you sent).
Now, I am not entirely sure that you are editing the stylesheet from the DITA Open Toolkit you are currently using for publishing output.
Maybe you should also try setting it in the OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/topic2fo_shell.xsl stylesheet.
Probably the DITA Open Toolkit Users List is a also good place to find more details about fixing this.
http://groups.yahoo.com/group/dita-users/
You can also send us a sample project (map + topics) to reproduce the problem and we'll look into it.
The email address can be found here:
http://www.oxygenxml.com/techSupport.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 5
- Joined: Fri Aug 14, 2009 4:26 pm
Re: Topics not displaying in pdf TOC / bookmarks
Hi Radu,
I've just sent you a sample file of the project at the support email address. Hope you can tell me what's wrong with what I'm doing.
I'll also post a message on the DITA users list.
Thanks again for helping me.
Regards
claudine
I've just sent you a sample file of the project at the support email address. Hope you can tell me what's wrong with what I'm doing.
I'll also post a message on the DITA users list.
Thanks again for helping me.
Regards
claudine
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service