Page 1 of 1

Adding ID to topicref navtitle

Posted: Mon Dec 24, 2018 1:10 pm
by anna_craneo
Hi, I have a map with nested maps that are divided by topichead navtitles regarding their purpose. Then I use DITA -> HTML5 transformation to generate index.html with map structure.

Example:

Code: Select all

<map>
<topichead navtitle="Feature documentation">
<topicref href="map1.ditamap" format="ditamap"/>
<topicref href="map2.ditamap" format="ditamap" collection-type="sequence"/>
</topichead>
<topichead navtitle="Release notes">
<topicref href="map3.ditamap" format="ditamap"/>
</topichead>
<map>
Can I by any chance add some sort of id to topichead navtitles that will be displayed index.html, like this <topichead id = "ID" navtitle="Feature documentation">"

Re: Adding ID to topicref navtitle

Posted: Thu Jan 10, 2019 2:18 pm
by Radu
Hi Anna,

Sorry for the delay. Right now the @id attribute set on the topicref does not seem to be preserved in the HTML5 output.
Could you tell us more about your use case? What would you use that ID for?

Regards,
Radu