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.
tanja
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

Post by tanja »

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
julien_lacour
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:

Code: Select all

*[class ~= "topic/topic"][topicreftoc = "no"] > *[class ~= "topic/title"] {
  bookmark-label: content(before) content();
  -ah-bookmark-label: content(before) content();
}
The bookmarks of topics contained in ditamap with @toc="no" will be displayed afterwards.

Regards,
Julien
tanja
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

Post by tanja »

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.
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.
julien_lacour
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
tanja
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

Post by tanja »

Hi Julien,

I just sent the e-mail.

Thanks again,
Tanja
julien_lacour
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:

Code: Select all

*[class ~= "topic/topic"][topicreftoc = "no"] > *[class ~= "topic/title"] {
  bookmark-label: content(before) " " content();
  -ah-bookmark-label: content(before) " " content();
}
Regards,
Julien
tanja
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

Post by tanja »

Hello again,

Adding an extra space to the rule worked like a charm in my setup :)

Thanks a ton!
Regards, Tanja
Post Reply