Automating assembly of a ditamap
-
- Posts: 30
- Joined: Sat May 04, 2019 5:55 pm
Automating assembly of a ditamap
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.
Re: Automating assembly of a ditamap
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 30
- Joined: Sat May 04, 2019 5:55 pm
Re: Automating assembly of a ditamap
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?
Re: Automating assembly of a ditamap
Hi,
So:
You can probably write in Oxygen a custom XSLT stylesheet which does that.
https://www.oxygenxml.com/doc/versions/ ... -file.html
Regards,
Radu
So:
In what file format is that list of topic references kept?Let's say we have a list of topics. Can we dynamically create a map using that outline?
You can probably write in Oxygen a custom XSLT stylesheet which does that.
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:Also, is it possible to add topics to a map file while publishing content?
https://www.oxygenxml.com/doc/versions/ ... -file.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com