is the mimetype file the first in the zip? -----Original Message----- From: Eric Johnson [mailto:[email protected]] Sent: 27 March 2009 14:54 To: Keith Fahlgren Cc: [email protected] 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:[email protected]] Sent: Thursday, March 26, 2009 10:00 PM To: Bob Stayton Cc: Eric Johnson; [email protected] Subject: Re: [docbook-apps] Using ePub On Thu, Mar 26, 2009 at 3:39 PM, Bob Stayton <[email protected]> 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] This email was sent by a company owned by Pearson plc, registered office at 80 Strand, London WC2R 0RL. Registered in England and Wales with company number 53723 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
