Automating assembly of a ditamap

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
antoterrence
Posts: 28
Joined: Sat May 04, 2019 5:55 pm

Automating assembly of a ditamap

Post by antoterrence » Wed Sep 04, 2019 6:03 am

Is it possible to automatically build a map without having to create it manually? If you can point me to a direction, that will be great.

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

Re: Automating assembly of a ditamap

Post by Radu » Wed Sep 04, 2019 9:12 am

Hi,

How exactly did you end up with the DITA topics? Did they result from a conversion? Maybe the conversion process could be improved to also generate the DITA Map.
If you create a new DITA Map, save it to disk and open it in the DITA Maps Manager view, you can right click the DITA map root and choose "Append Child->Reference". The dialog which pops up has a file chooser which allows multiple selection so if all your DITA topics are in the same folder you can select them all and topic references will be added to them.
Or you can create an XSLT stylesheet which iterates over all topics in one or multiple folders and adds references to them.

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

antoterrence
Posts: 28
Joined: Sat May 04, 2019 5:55 pm

Re: Automating assembly of a ditamap

Post by antoterrence » Thu Sep 05, 2019 4:52 am

Thank you for the response. We are not using content from any other source. Let's say we have a list of topics. Can we dynamically create a map using that outline? Also, is it possible to add topics to a map file while publishing content?

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

Re: Automating assembly of a ditamap

Post by Radu » Thu Sep 05, 2019 10:46 am

Hi,

So:
Let's say we have a list of topics. Can we dynamically create a map using that outline?
In what file format is that list of topic references kept?
You can probably write in Oxygen a custom XSLT stylesheet which does that.
Also, is it possible to add topics to a map file while publishing content?
The publishing engine is based on ANT build files and maybe you can create your own custom ANT build file to perform various custom operations before the publishing:

https://www.oxygenxml.com/doc/versions/ ... -file.html

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

Post Reply