Exporting a set of all files referenced in a ditamap

mdslup
Posts: 104
Joined: Tue Mar 06, 2018 1:34 am

Exporting a set of all files referenced in a ditamap

Post by mdslup » Tue Apr 02, 2019 9:21 pm

I have a ditamap with many children topic files that are controlled by profiling attributes. In some cases, entire files are excluded; such that when I look at the map in the maps manager, those files are 'grayed out' because the current profiling attribute that I have selected excludes them.

So, when I right-click the map name and select "Export Dita Map" when I have that profiling attribute selected, I expect those files to be *excluded* from the output. However, they are included. The export includes files that the current profiling attribute excludes.

Is there a way to output only the files that are included with the profiling attribute that I have selected?

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

Re: Exporting a set of all files referenced in a ditamap

Post by Radu » Wed Apr 03, 2019 7:37 am

Hi,

Sorry but our Export DITA Map functionality does not take into account filtering. We have an internal issue to add such an improvement and if we do I will update this forum thread.
There is a similar feature which may help though, open the DITA Map in the DITA Maps Manager view, use the "Configure Transformation Scenarios" toolbar button there, create a new transformation scenario of type "DITA-OT" and in the list of available transtypes you will find "Export DITA Map Contents to ZIP archive", use that and in the transformation scenario go to the "Filters" tab and apply the profiling filter you are using, then publish using that transformation scenario. Because this way of exporting the DITA Map uses the publishing engine to decide what resources to include, the filter should be taken into account.

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

mdslup
Posts: 104
Joined: Tue Mar 06, 2018 1:34 am

Re: Exporting a set of all files referenced in a ditamap

Post by mdslup » Thu Apr 11, 2019 3:36 am

Works perfectly, thanks!

Post Reply