Page 1 of 1

Exporting a set of all files referenced in a ditamap

Posted: Tue Apr 02, 2019 9:21 pm
by mdslup
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?

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

Posted: Wed Apr 03, 2019 7:37 am
by Radu
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

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

Posted: Thu Apr 11, 2019 3:36 am
by mdslup
Works perfectly, thanks!

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

Posted: Mon Jul 01, 2019 11:39 am
by annetteb
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

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

Posted: Mon Jul 01, 2019 12:15 pm
by Radu
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

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

Posted: Fri Jul 12, 2019 12:34 am
by annetteb
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

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

Posted: Wed Oct 30, 2019 8:25 pm
by dgallo
I've also noticed that when a topic has chunk="to-content" assigned, the child topics below that topic are not exported. Is there a solution to this?

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

Posted: Thu Oct 31, 2019 10:22 am
by Radu
Hi,

I cannot quite reproduce this problem. What version of Oxygen are you using? Can you try to maybe reproduce this on a small DITA project? If so maybe you can send us (support@oxygenxml.com) the small DITA project and we can see if we can do something about this, if there is enough information for the plugin to be able to export all topics.

Regards,
Radu