Adding ID to topicref navtitle

Having trouble installing Oxygen? Got a bug to report? Post it all here.
anna_craneo
Posts: 33
Joined: Tue Feb 20, 2018 2:51 pm

Adding ID to topicref navtitle

Post 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">"
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Adding ID to topicref navtitle

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