Wilco. Dick ------- XML Press New from XML Press: Learning Author-it http://xmlpress.net/publications/learning-author-it
On Aug 15, 2012, at 3:12 PM, Bob Stayton wrote: > Hi Dick, > That's a bug in how the properties are generated in the .opf file. Please > file a bug report on it. Thanks. > > Bob Stayton > Sagehill Enterprises > [email protected] > > > ----- Original Message ----- From: "Richard L Hamilton" <[email protected]> > To: "DocBook Apps" <[email protected]> > Sent: Wednesday, August 15, 2012 2:52 PM > Subject: [docbook-apps] ePub3 stylesheet question and possible bug > > > I've been trying out the ePub3 stylesheets, and so far they have been very > good, but there is one anomaly. > > In several places I use constructs like the following: > > <mediaobject> > <imageobject role="html"> > <imagedata fileref="figures/xyz.jpg"/> > </imageobject> > <imageobject role="fo"> > <imagedata fileref="figures/xyz.svg"/> > </imageobject> > </mediaobject> > > The stylesheets handle this as I would expect. There are no svg images in the > resulting epub, and the xhtml never references any svg file (other than to > declare the namespace, which is strange, but causes no trouble). > > However, epubcheck complains about several <item> elements in the package.opf > file that have the attribute: properties="svg" > > From a cursory look at the stylesheets, it seems that when they generate the > <item> element, they look for any image of type .svg inside the element > <item> refers to, and if there is one, it adds that attribute, even if the > imageobject has a role that will keep it from being included. > > If I manually remove those attributes from package.opf, everything is fine > and the epub passes epubcheck (3.0b5) cleanly. > > So, it seems like either I'm coding the imagedata incorrectly or there is a > bug in the epub3 stylesheets. > > If anyone knows which it is, I'll be glad to fix my code if it's the former > and file an RFE if it's the latter. > > Thanks, > Dick Hamilton > ------- > XML Press > New from XML Press: > WIKI: Grow Your Own for Fun and Profit > http://xmlpress.net/publications/wiki-how-to-grow > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
