images not copied correctly during xhtml generation
Post here questions and problems related to editing and publishing DITA content.
images not copied correctly during xhtml generation
Hello,
I've noticed that images do not get copied to the correct out directory during xhtml generation if the main map references a directory that is not below the main map. I'm using oXygenXML 13.2. The specific situation is as follows:
* The main ditamap includes a mapref to a ditamap in a sibling directory to where main ditamap is located. Main ditamap is in a directory called project
* The sibling ditamap contains keydefs that point to some reusable text fragments.
* Images are stored in main project in directory project/topics/graphics
* After xhtml generation the images are not visible in the generated output. They have not been copied to the out directory, but instead have been copied to project/project/topics/graphics
* If the mapref to the sibling ditamap is commented out then the images are copied to the correct location and are visible in the generated html.
* PDF generation works fine.
Is this a known issue with the dita_ot, or is there some configuration I need to set to handle this situation?
I've noticed that images do not get copied to the correct out directory during xhtml generation if the main map references a directory that is not below the main map. I'm using oXygenXML 13.2. The specific situation is as follows:
* The main ditamap includes a mapref to a ditamap in a sibling directory to where main ditamap is located. Main ditamap is in a directory called project
* The sibling ditamap contains keydefs that point to some reusable text fragments.
* Images are stored in main project in directory project/topics/graphics
* After xhtml generation the images are not visible in the generated output. They have not been copied to the out directory, but instead have been copied to project/project/topics/graphics
* If the mapref to the sibling ditamap is commented out then the images are copied to the correct location and are visible in the generated html.
* PDF generation works fine.
Is this a known issue with the dita_ot, or is there some configuration I need to set to handle this situation?
Re: images not copied correctly during xhtml generation
Hi Richard,
The DITA OT indeed has many problems when it comes to generating XHTML-based output from DITA Maps which reference content outside of their source folder:
http://www.oxygenxml.com/forum/topic5244.html
Usually my suggestion is to have all published DITA Maps in a top folder so that all references are made inside a single folder.
For this you could define a master DITA Map which references the DITA Map that you are currently publishing.
In Oxygen 14 when editing a transformation scenario, in the Parameters tab we added a new parameter called:
fix.external.refs.com.oxygenxml
The parameter activated custom Oxygen functionality which tries to deal with this issue.
Oxygen 14 beta kits are already available so our of curiosity you could install an Oxygen 14 beta side-by-side with your installation and try the new parameter:
http://www.oxygenxml.com/pipermail/oxyg ... 04129.html
Regards,
Radu
The DITA OT indeed has many problems when it comes to generating XHTML-based output from DITA Maps which reference content outside of their source folder:
http://www.oxygenxml.com/forum/topic5244.html
Usually my suggestion is to have all published DITA Maps in a top folder so that all references are made inside a single folder.
For this you could define a master DITA Map which references the DITA Map that you are currently publishing.
In Oxygen 14 when editing a transformation scenario, in the Parameters tab we added a new parameter called:
fix.external.refs.com.oxygenxml
The parameter activated custom Oxygen functionality which tries to deal with this issue.
Oxygen 14 beta kits are already available so our of curiosity you could install an Oxygen 14 beta side-by-side with your installation and try the new parameter:
http://www.oxygenxml.com/pipermail/oxyg ... 04129.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: images not copied correctly during xhtml generation
Thanks Radu,
I tried your first suggestion and the output is as expected. For now, I'll just adjust my project structure to include a directory above the actual publication directory and put a ditamap in there with a mapref to the actual publication's main map. A bit of a hack, but it will work for now.
I tried your first suggestion and the output is as expected. For now, I'll just adjust my project structure to include a directory above the actual publication directory and put a ditamap in there with a mapref to the actual publication's main map. A bit of a hack, but it will work for now.
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