OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: OPF file for EPUB is linking to images with different roles

  For Docbook 4.x, I was able to use the following to force PDF's to use 
SVG and HTML Books to use PNG's:

<imageobject role="fo">
<imagedata fileref="screenshots/wizard_step_1.svg" scale="70"/>
<imageobject role="html">
<imagedata fileref="screenshots/wizard_step_1.png" scale="70"/>

This still works for PDF and HTML documents, however, I am finding that 
the epub translation causes both of these images to be referenced in the 
OPF file:

<item id="d0e88" href="screenshots/wizard_step_1.svg" 
<item id="d0e94" href="screenshots/wizard_step_1.png" 

The raw html output of the translated epub is (correctly) only 
referencing the .png file

<div class="mediaobject"><img src="screenshots/wizard_step_1.png" 
width="378" alt="Step 1 Image Data"/>

Incidentally, what "role" should an epub document be? role="epub" does 
not seem to work. Is it "xhtml"?


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]