View Full Version : Epub errors


John123
06-07-2012, 01:45 AM
Hi,

I'm using http://validator.idpf.org/ to validate the attached file (I have permission to upload this ebook), and I'm getting errors, I have also attached these errors in the form of a screen shot.

I'm using Sigil to prepare the ebook.

Does anyone have any idea what is wrong? I'm not technical enough to figure it out.

Many thanks in advance.

John.

Doitsu
06-07-2012, 04:01 AM
Most of the error messages are self-explanatory and can be easily fixed.
Your mimetype file contains a linebreak character at the end that needs to be deleted and the file reference in the <guide> section of your package.opf file is missing the full path. You'll need to change it:

From: <reference type="cover" title="Cover Image" href="cover.xml"/>
To: <reference type="cover" title="Cover Image" href="xhtml/cover.xml"/>

To implement these changes, change the file extension from .epub to .zip and then extract all files. (If you still have the original project folder you can of course update the files there.)
Then use epubzip (http://www.mobileread.com/forums/showthread.php?t=55681) (OS X) or epubpack (http://sourceforge.net/projects/epubpack/) (Windows) to re-create the .epub file.

John123
06-07-2012, 03:13 PM
Thank you very much indeed! You lit the way.

I have always worked with .epub files within the Sigil environment. Everything worked just as you said.

Once again many thanks.

Case closed :thumbsup: