Next in thread →
Next in month →
Re: [docbook-apps] Images do not extract to epub OPF manifest
Hi Dave, The ANT build file for the Docbook to EPUB transformation: OXYGEN_INSTALL_DIR/frameworks/docbook/xsl/epub/bin/build.xml was created by us (Oxygen XML Editor) from the original Python scripts which were available to transform to EPUB. We also added some custom processing which indeed, from what I've tested does not create a valid OPF file in some cases. I did not quite manage to reproduce your situation, could you send to the Oxygen XML Editor Support email address () a sample Docbook project on which the problem can be reproduced. I'm attaching a modified version of the build file: OXYGEN_INSTALL_DIR/frameworks/docbook/xsl/epub/bin/build.xml ANT build file which removed some of the custom processing we perform to the OPF file (and which sometimes leads to invalid EPUB archives). Can you copy it over the initial ANT build file and see if your situation is corrected? Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com > > -------- Original Message -------- > Subject: [docbook-apps] Images do not extract to epub OPF manifest > Date: Sat, 21 May 2011 16:26:45 +1000 > From: redlettucemail <> > To: > > > > I am transforming a DB5 (1.76) book to epub using oXygen 12.2, and > running epubcheck gives me a warning that images are not declared in the > OPF file. Inexpicably, I do get only one image showing in the manifest: > "<manifest> > <item id="ncxtoc" media-type="application/x-dtbncx+xml" href="toc.ncx" /> > <item media-type="text/css" id="css" href="../epub3.css" /> > <item id="cover" href="cover.html" media-type="application/xhtml+xml" /> > <item id="coverimage" href="images/frontcover.jpg" > media-type="image/jpeg" /> > <item id="d0e274" href="pr01.html" media-type="application/xhtml+xml" /> > <item id="d0e306" href="chap1.html" media-type="application/xhtml+xml" /> > <item id="d0e350" href="sec1.2.html" media-type="application/xhtml+xml" /> > <item id="d0e403" href="sec1.3.html" media-type="application/xhtml+xml" /> > <item id="d0e424" href="chap2.html" media-type="application/xhtml+xml" /> > *<item id="d0e451" href="images/Figure2-1.gif" media-type="image/gif" />* > <item id="d0e715" href="sec2.2.html" media-type="application/xhtml+xml" /> > ....." > I've checked the XML markup, and every image in each chunk has the > imagedata file format declared as GIF, e.g.: > "<figure pgwide="1" xml:id="fig2.2" floatstyle="before"> > <title>Australia’s meso-scale marine bioregions. Source: Department of > Environment, > Water, Heritage and the Arts.</title> > <titleabbrev>Australia’s meso-scale marine bioregions</titleabbrev> > <mediaobject> > <textobject> > <phrase>Australia’s meso-scale marine bioregions</phrase> > </textobject> > <imageobject role="fo"> > <imagedata fileref="images/Figure2-2.gif" width="70%" align="center" > format="GIF" /> > </imageobject> > <imageobject role="html"> > <imagedata fileref="images/Figure2-2.gif" width="450px" align="center" > format="GIF" /> > </imageobject> > </mediaobject> > </figure>" > I can't see what markup I'm missing to get images to extract to the OPF. > Any help appreciated thanks. > Dave Gardiner >
Next in thread →
Next in month →