Exporting a set of all files referenced in a ditamap

mdslup
Posts: 110
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: 6335
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: 110
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!

annetteb
Posts: 22
Joined: Tue Apr 15, 2014 6:43 pm

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

Post by annetteb » Mon Jul 01, 2019 11:39 am

Hello Radu,
I've tested the transformation scenario and it seems to work pretty well, except that it does not export all images, actually only the bitmap files (PNG file format) are exported, vector files (that is SVG format for our project) are not exported :(
Do you have any idea why it skips the SVG files? Any idea of a workaround?
Thanks for your help,
Annette

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

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

Post by Radu » Mon Jul 01, 2019 12:15 pm

Hi Annette,

If you look in the build file:

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/plugins/com.oxygenxml.export.map/build.xml

it explicitly excludes the copying of SVG and MathML files:

Code: Select all

        <exclude name="**/*.mml"/>
        <exclude name="**/*.svg"/>
Honestly I forgot why I did this. Maybe you can remove those lines from there, save the build.xml and try again to export.

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

annetteb
Posts: 22
Joined: Tue Apr 15, 2014 6:43 pm

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

Post by annetteb » Fri Jul 12, 2019 12:34 am

Hi Radu,
It works perfectly now, thanks!
BTW, from my point of view, it is much better than the basic export feature in the ditamap manager.
Best regards,
Annette

Post Reply