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] Using ePub


Thanks for the quick fix and the additional information!!

I got my book to build an open in Stanza desktop. There are still a few validation errors from the on-line validator, bit I think I know how to fix most of them.

One that perplexes me is that I got an error about the expected mimetype. The mimetype file I place at the root of the package contains "application/epub+zip" and the validator tells me that my package has the wrong mimetype and it is expecting "application/epub+zip"...

Is there something subtle that I'm missing?


-----Original Message-----
From: Keith Fahlgren [mailto:abdelazer@gmail.com] 
Sent: Thursday, March 26, 2009 10:00 PM
To: Bob Stayton
Cc: Eric Johnson; docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Using ePub

On Thu, Mar 26, 2009 at 3:39 PM, Bob Stayton <bobs@sagehill.net> wrote:
> Indeed, the xmlns errors indicate a problem in the stylesheet.  You can't
> assign an element to a namespace by trying to assign an ordinary attribute
> with name "xmlns".  It must use the namespace attribute on xsl:element.
>
> Change this (and the like):
>
>       <xsl:element name="item">
>         <xsl:attribute
> name="xmlns">http://www.idpf.org/2007/opf</xsl:attribute>
>
> to this:
>
>       <xsl:element name="item" namespace="http://www.idpf.org/2007/opf";>

Thanks for this bug report, Bob. I'm surprised xsltproc never cared
but the code was horribly casual with namespaces, and this has been
resolved in SVN.

Eric: You can either grab a new epub/docbook.xsl here
http://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl/epub/docbook.xsl
or wait for one of the snapshot builds.

Please let me know what I can do to help you get Ant going. I'm not an
Ant user, but have a basic understanding of the three ePub specs. You
may find this list of resources useful:
http://labs.oreilly.com/2009/03/epub-resources-and-guides.html


Keith


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