ditamap using the same topic multiple times

<oXygen/> general issues.
Posts: 23
Joined: Wed Nov 02, 2016 9:01 pm

ditamap using the same topic multiple times

Post by jojobar » Sun Jun 30, 2019 6:26 am

In a ditamap I am using the same topic file multiple times. When compiling with ditamap with webhelp responsive, I see that each topic creates a separate files with _1, _2 etc. For example

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
    <topichead navtitle="Desktop">
        <topicref href="Topics/home-page.dita"/>
        <topicref href="Topics/calendar.dita"/>
    <topichead navtitle="Contact Manager">
        <topicref href="Topics/invoices.dita"/>
        <topicref href="Topics/calendar.dita"/>
So it creates calendar-copy_1, etc.

I would like to have just one copy and refer to it instead of duplicating the topic files... Is this possible?

Posts: 6453
Joined: Fri Jul 09, 2004 5:18 pm

Re: ditamap using the same topic multiple times

Post by Radu » Mon Jul 01, 2019 8:46 am


If you edit the DITA to WebHelp transformation scenario you are using in Oxygen, in the Parameters list there is a force-unique parameter which can be set to false. But this may induce various other problems. For example for each opened topic there is a breadcrumb showing the path to it. Also the topic is shown as selected in the table of contents. As the topic will be a single file on disk, referenced from multiple places the publishing may have problems showing the context in which it is referenced.

Radu Coravu
<oXygen/> XML Editor

Post Reply