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: Re: [docbook-apps] ePub3 stylesheet question and possible bug

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

----- Original Message ----- From: "Richard L Hamilton" <dick@rlhamilton.net>
To: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
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:

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

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.

Dick Hamilton
XML Press
New from XML Press:
WIKI: Grow Your Own for Fun and Profit

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

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