Getting images to work in DB epub ANT transformation
Posted: Tue Aug 14, 2012 10:40 pm
Hi,
I'm working with the Docbook to ePub transform you guys built in ANT. I'm doing very heavy customization of the underlying DocBook XSL to get the output I want. One problem I've been running into is that the ANT transform fails when I try to insert an image via XSLT. For example, I've customized my titlepage to output an image file.
The correct img tag with the correct path to the image is inserted, but your image.xsl stylesheet chokes because it can't find the image to copy. I think it is looking for the image in the XML directory, but I store my epub image files elsewhere. Is it possible to redirect where the ANT process locates images?
I'm working with the Docbook to ePub transform you guys built in ANT. I'm doing very heavy customization of the underlying DocBook XSL to get the output I want. One problem I've been running into is that the ANT transform fails when I try to insert an image via XSLT. For example, I've customized my titlepage to output an image file.
Code: Select all
<div class="titlepage-logo">
<xsl:element name="img">
<xsl:attribute name="alt">My Logo</xsl:attribute>
<xsl:attribute name="src">
<xsl:text>images/</xsl:text>
<xsl:value-of select="$ebook.titlepage.logo.filename"/>
</xsl:attribute>
</xsl:element>
</div>