Exporting a set of all files referenced in a ditamap

Post here questions and problems related to editing and publishing DITA content.
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

Exporting a set of all files referenced in a ditamap

Post 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?
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

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

Post by mdslup »

Works perfectly, thanks!
annetteb
Posts: 24
Joined: Tue Apr 15, 2014 6:43 pm

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

Post 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
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
annetteb
Posts: 24
Joined: Tue Apr 15, 2014 6:43 pm

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

Post 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
dgallo
Posts: 90
Joined: Tue Mar 31, 2015 10:43 pm

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

Post 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?
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply