Adding ID to topicref navtitle

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
anna_craneo
Posts: 28
Joined: Tue Feb 20, 2018 2:51 pm

Adding ID to topicref navtitle

Post by anna_craneo » Mon Dec 24, 2018 1:10 pm

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">"

Radu
Posts: 6275
Joined: Fri Jul 09, 2004 5:18 pm

Re: Adding ID to topicref navtitle

Post by Radu » Thu Jan 10, 2019 2:18 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply