Map title in index

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

Map title in index

Post by anna_craneo »

Hi!

I have a map with several submaps. The structure is the following

Code: Select all

<map title="Main map" toc="yes">
<topicref href="map1.ditamap" format="ditamap" collection-type="sequence"/>
<topicref href="map2.ditamap" format="ditamap" collection-type="sequence"/>
</map>
I run standard transformation DITA -> HTML5.
In index.html I can only see the title of the main map.

Code: Select all

<!DOCTYPE html
SYSTEM "about:legacy-compat">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="copyright" content="(C) Copyright 2018">
<meta name="DC.rights.owner" content="(C) Copyright 2018">
<meta name="DC.Type" content="map">
<meta name="DC.Format" content="XHTML">
<link rel="stylesheet" type="text/css" href="commonltr.css">
<title>Main map</title>
</head>
<body>
<h1 class="title topictitle1">Main map</h1>
Is there any chance to show titles of submaps as well? The may or may not be clickable.
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Map title in index

Post by Radu »

Hi Anna,

All referenced submaps are treated as transparent by the publishing engine (it's as if at publishing time the references to the submaps are replaced with direct references to the topics referenced by the submaps).
So what you want cannot be done.
Maybe you can add <topichead navtitle="..."> elements around your DITA Map references to create those additional levels in the TOC.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply