Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 40
- Joined: Tue Oct 30, 2018 10:49 am
Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0
Hi all,
I am using Oxygen XML Editor 23.0 and a customized version of the 'DITA Map PDF - based on HTML5 & CSS' transformation to create my PDF guides.
My setup contains a master map that has several child maps, included as map references. Compared to Oxygen XML Editor 20.1, I am experiencing a change in the output regarding the toc attribute that is set on the level of a referenced map:
In Oxygen XML Editor 20.1, when I set the toc attribute of a referenced map to no, the topics inside of this map are not shown in the TOC of the guide, but they are shown in the bookmarks of the PDF.
When I do the same in Oxygen XML Editor 23.0, the topics inside of the referenced map are neither shown in the TOC nor in the bookmarks.
I would like to have the same output as in Oxygen XML Editor 20.1 - topics not shown in the TOC, but shown in the bookmarks. Could you give me a hint on how to configure Oxygen XML Editor 23.0 here?
Thanks and best regards,
Tanja
I am using Oxygen XML Editor 23.0 and a customized version of the 'DITA Map PDF - based on HTML5 & CSS' transformation to create my PDF guides.
My setup contains a master map that has several child maps, included as map references. Compared to Oxygen XML Editor 20.1, I am experiencing a change in the output regarding the toc attribute that is set on the level of a referenced map:
In Oxygen XML Editor 20.1, when I set the toc attribute of a referenced map to no, the topics inside of this map are not shown in the TOC of the guide, but they are shown in the bookmarks of the PDF.
When I do the same in Oxygen XML Editor 23.0, the topics inside of the referenced map are neither shown in the TOC nor in the bookmarks.
I would like to have the same output as in Oxygen XML Editor 20.1 - topics not shown in the TOC, but shown in the bookmarks. Could you give me a hint on how to configure Oxygen XML Editor 23.0 here?
Thanks and best regards,
Tanja
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0
Post by julien_lacour »
Hi Tanja,
You can add the following rule in a custom CSS stylesheet:
The bookmarks of topics contained in ditamap with @toc="no" will be displayed afterwards.
Regards,
Julien
You can add the following rule in a custom CSS stylesheet:
Code: Select all
*[class ~= "topic/topic"][topicreftoc = "no"] > *[class ~= "topic/title"] {
bookmark-label: content(before) content();
-ah-bookmark-label: content(before) content();
}
Regards,
Julien
-
- Posts: 40
- Joined: Tue Oct 30, 2018 10:49 am
Re: Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0
Hi Julien,
Thanks for the quick reply. I added the rule to my stylesheet.
The bookmarks are displayed now, but without a blank between the numbering and the text.
Thanks again and best regards,
Tanja
Thanks for the quick reply. I added the rule to my stylesheet.
The bookmarks are displayed now, but without a blank between the numbering and the text.
image.png
Could you tell me how to add the missing blank?Thanks again and best regards,
Tanja
You do not have the required permissions to view the files attached to this post.
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0
Post by julien_lacour »
Hello Tanja,
I cannot reproduce the problem on my side, could you please send me your CSS customization at support@oxygenxml.com for further analysis?
Regards,
Julien
I cannot reproduce the problem on my side, could you please send me your CSS customization at support@oxygenxml.com for further analysis?
Regards,
Julien
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0
Post by julien_lacour »
Hello,
If the content displayed before the chapter titles is different than Oxygen's default rules (for example: content: counter(chapter)) you may need to add an extra space into the bookmark-labels rules:
Regards,
Julien
If the content displayed before the chapter titles is different than Oxygen's default rules (for example: content: counter(chapter)) you may need to add an extra space into the bookmark-labels rules:
Code: Select all
*[class ~= "topic/topic"][topicreftoc = "no"] > *[class ~= "topic/title"] {
bookmark-label: content(before) " " content();
-ah-bookmark-label: content(before) " " content();
}
Julien
Return to “DITA (Editing and Publishing DITA Content)”
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