#1252 Properties incorrectly generated in package.opf

output: ePub
closed-fixed
ePub (11)
5
2014-01-20
2012-08-15
Richard Hamilton
No

If you have source like the following in your input DocBook:

<mediaobject>
<imageobject role="html">
<imagedata fileref="figures/xyz.jpg"/>
</imageobject>
<imageobject role="fo">
<imagedata fileref="figures/xyz.svg"/>
</imageobject>
</mediaobject>

When the stylesheets generate the <item> elements in the package.opf file, they will include the attribute properties="svg" even though the svg file is not in the output epub files. This causes a problem with epubcheck (3.0b5). Otherwise, the stylesheets do exactly the right thing. They select the file specified in the imageobject element with role="html" and drop the other one, and all the links and file references are correct.

Discussion

  • Robert Stayton
    Robert Stayton
    2012-10-22

    A fix for this issue has been added to the current codebase.
    Please test the fix with the latest snapshot from:

    http://docbook.sourceforge.net/snapshots/

     
  • Robert Stayton
    Robert Stayton
    2012-10-22

    • status: open --> pending-fixed
     
  • Robert Stayton
    Robert Stayton
    2014-01-20

    • Status: pending-fixed --> closed-fixed