Exporting a set of all files referenced in a ditamap
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 167
- Joined: Tue Mar 06, 2018 1:34 am
Exporting a set of all files referenced in a ditamap
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?
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?
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Exporting a set of all files referenced in a ditamap
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 24
- Joined: Tue Apr 15, 2014 6:43 pm
Re: Exporting a set of all files referenced in a ditamap
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
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
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Exporting a set of all files referenced in a ditamap
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:
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
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"/>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 24
- Joined: Tue Apr 15, 2014 6:43 pm
Re: Exporting a set of all files referenced in a ditamap
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
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
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Exporting a set of all files referenced in a ditamap
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service