DocBook to ePUB with SVG?
Oxygen general issues.
-
- Posts: 10
- Joined: Tue Aug 24, 2010 6:49 pm
DocBook to ePUB with SVG?
I'm trying to convert a DocBook file with SVG images to ePUB. The problem is that the images don't appear in the ePUB. Neither the DocBook nor SVG files have validation errors. Here is the <imageobject> fragment from DocBook.
Any ideas?
Any ideas?
Code: Select all
<mediaobject>
<imageobject>
<imagedata fileref="test_files/_17_0_2_31d104c4_1315959697454_106692_95624.svg" format="SVG" scalefit="1" width="100%"/>
</imageobject>
</mediaobject>
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DocBook to ePUB with SVG?
Hi,
There is a problem in the stylesheet used to copy referenced images to the output folder.
We'll correct it and the fix will probably be included in Oxygen 13.1 in a couple of months.
Until then you can open the stylesheet:
OXYGEN_INSTALL_DIR/frameworks/docbook/xsl/epub/images.xsl
and add in it the following xsl:template:
Regards,
Radu
There is a problem in the stylesheet used to copy referenced images to the output folder.
We'll correct it and the fix will probably be included in Oxygen 13.1 in a couple of months.
Until then you can open the stylesheet:
OXYGEN_INSTALL_DIR/frameworks/docbook/xsl/epub/images.xsl
and add in it the following xsl:template:
Code: Select all
<xsl:template match="@data[parent::xhtml:object[@type='image/svg+xml']]">
<xsl:variable name="imagePath" select="XSLTExtensionIOUtil:copyFile($inputDir, ., $outputDir, $imagesDir)"/>
<xsl:attribute name="data"><xsl:value-of select="$imagePath"/></xsl:attribute>
</xsl:template>
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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