Images added through css missing from output folder
Questions about XML that are not covered by the other forums should go here.
Images added through css missing from output folder
Is there an way to force include some images?
Basically, we are modifying how the note, tip and warnings looks like through css, but the images are not added to the output folder because the images are not referenced in the actually xml sources.
This is how I modify the image.
Basically, we are modifying how the note, tip and warnings looks like through css, but the images are not added to the output folder because the images are not referenced in the actually xml sources.
This is how I modify the image.
Code: Select all
div.note > span.note__title {
background-repeat: no-repeat;
background-image: url(images/note.png) !important;
font-weight: bold;
}
Re: Images added through css missing from output folder
Hi,
To copy the images in the output, please check this topic from our user manual: How to Copy Additional Resources to Output Directory
Regards,
Ionela
To copy the images in the output, please check this topic from our user manual: How to Copy Additional Resources to Output Directory
Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Re: Images added through css missing from output folder
Hi,
The DITA Open Toolkit does not have a certain parameter for including certain content no matter for what publishing format.
But what I would sometimes do in such cases is to refer in the DITA Map to those images as resource-only content like:
They do not appear in the table of contents but get copied to the output folder. And this works for any type of resource that you want copied to the output folder.
Regards,
Radu
The DITA Open Toolkit does not have a certain parameter for including certain content no matter for what publishing format.
But what I would sometimes do in such cases is to refer in the DITA Map to those images as resource-only content like:
Code: Select all
<topicref href="someImage.png" format="png" processing-role="resource-only"/>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Images added through css missing from output folder
Hi,
If you set the transformation parameter "clean.temp" to "no" and publish to CHM, you can afterwards look in the transformation temporary folder temp\chm\temp_chm_dir, the image should be there, but when the HTML Help Workshop constructs the CHM, it starts from the hhp, hhk and hhc files which do not refer to the image, so the compiled CHM no longer has it as none of the HTML documents inside it refers directly to the image.
Maybe one option would be to place the image base 64 encoded in the CSS. I'm not sure if "background-image" works at all in a CHM because it uses a web browser with a more limited set of features.
Regards,
Radu
If you set the transformation parameter "clean.temp" to "no" and publish to CHM, you can afterwards look in the transformation temporary folder temp\chm\temp_chm_dir, the image should be there, but when the HTML Help Workshop constructs the CHM, it starts from the hhp, hhk and hhc files which do not refer to the image, so the compiled CHM no longer has it as none of the HTML documents inside it refers directly to the image.
Maybe one option would be to place the image base 64 encoded in the CSS. I'm not sure if "background-image" works at all in a CHM because it uses a web browser with a more limited set of features.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
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