View Single Post
Old 06-25-2011, 01:05 PM   #7
SamL
I mess around with Epubs
SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.
 
Posts: 82
Karma: 1566
Join Date: Mar 2011
Location: Cambridge, MA
Device: mac, ipad, nook, kindle
Quote:
Originally Posted by LostSock View Post
That got rid of half of the errors. Thanks for pointing that out! It's still not reading the original files that it should be, however. It's like my content.opf is being snobbish.

Example:

WARNING: dancedance.epub: item (OEBPS/template.css) exists in the zip file, but is not declared in the OPF file
WARNING: dancedance.epub: item (OEBPS/Authors Note.xhtml) exists in the zip file, but is not declared in the OPF file
WARNING: dancedance.epub: item (OEBPS/Acknowledgements.xhtml) exists in the zip file, but is not declared in the OPF file
WARNING: dancedance.epub: item (OEBPS/Chapter Two.xhtml) exists in the zip file, but is not declared in the OPF file
From here this is an easy fix, you just need to declare these in your .opf file. Specifically within the <manifest> tags.

It should look something like this:

Quote:
<item id="chapter1" href="chapter1.xhtml" media-type="application/xhtml"/>
for each file you have. Every jpeg and XHTML file that is in your epub, will have to be declared like this in the manifest of your content.opf file.

You can see some more code of a sample .opf file here:
http://en.wikipedia.org/wiki/EPUB
SamL is offline   Reply With Quote