ditamap using the same topic multiple times

Oxygen general issues.
jojobar
Posts: 27
Joined: Wed Nov 02, 2016 9:01 pm

ditamap using the same topic multiple times

Post by jojobar »

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">
<map>
    <title>Help</title>
    <topichead navtitle="Desktop">
        <topicref href="Topics/home-page.dita"/>
        <topicref href="Topics/calendar.dita"/>
    </topichead>
    <topichead navtitle="Contact Manager">
        <topicref href="Topics/invoices.dita"/>
        <topicref href="Topics/calendar.dita"/>
    </topichead>
</map>
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?
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: ditamap using the same topic multiple times

Post by Radu »

Hi,

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.

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