Page 1 of 1

Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0

Posted: Fri Dec 17, 2021 7:22 pm
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

Re: Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0

Posted: Sat Dec 18, 2021 11:09 am
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

Re: Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0

Posted: Mon Dec 20, 2021 11:29 am
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

Re: Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0

Posted: Mon Dec 20, 2021 12:20 pm
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

Re: Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0

Posted: Mon Dec 20, 2021 12:38 pm
by tanja
Hi Julien,

I just sent the e-mail.

Thanks again,
Tanja

Re: Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0

Posted: Wed Dec 22, 2021 2:11 pm
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

Re: Different behavior of toc attribute in Oxygen XML Editor versions 20.1 and 23.0

Posted: Wed Dec 22, 2021 6:55 pm
by tanja
Hello again,

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

Thanks a ton!
Regards, Tanja