Page 1 of 1

HTML5 output and locktitle behavior

Posted: Fri Jul 29, 2022 9:47 pm
by kwriter
I'm transforming DITA to HTML5 and I have noticed that the locktitle attribute works on the top-level topics, but not the second-level topics in my navigation tree. For example, I have the following structure:

Part 1. Introduction to X (locktitle=yes)
Chapter 1. Getting Started (locktitle=yes)

The output navigation looks like this:
Part 1. Intruction to X
Getting Started

Is this working as designed or is there something else I need to do? For now, I'm working around it with conditional coding, which is OK since I need the title of the topic to reflect the same text, but it seems like locktitle should work regardless of where I set it.

Re: HTML5 output and locktitle behavior

Posted: Mon Aug 01, 2022 8:05 am
by Radu
Hi,

I'm afraid I do not understand, from your example I see you set locktitle on two topics and their titles in the table of contents seem to both reflect the titles.

The "locktitle" attribute influences only the table of contents, not the actual topic contents.
https://www.oxygenxml.com/dita/1.3/spec ... title.html

Regards,
Radu