View Full Version : ePub errors


Hatgirl
05-18-2010, 11:13 AM
I'm making my first handcrafted ePub (a pretty version of a PG text). Although I know it's not a done deal that passing epubcheck (http://www.threepress.org/document/epub-validate/) means all errors are corrected, it's been really helpful for troubleshooting.

I've managed to fix most of the idiot mistakes I made, but I am stumped about these last few.


ERROR: Wodehouse, PG - Right Ho, Jeeves.epub/OEBPS/content.opf(10): assertion failed: The "id" attribute does not have a unique value!
ERROR: Wodehouse, PG - Right Ho, Jeeves.epub/OEBPS/content.opf(36): assertion failed: The "id" attribute does not have a unique value!
ERROR: Wodehouse, PG - Right Ho, Jeeves.epub/OEBPS/content.opf(36): 'image/png' is not a permissible spine media-type
WARNING: Wodehouse, PG - Right Ho, Jeeves.epub/OEBPS/toc.ncx(20): hyperlink to resource outside spine 'OEBPS/cover.xhtml'


The epub is attached. Anyone know where I've screwed up? Any help is greatly appreciated.

Edit: Oh, and I haven't started marking up the text yet and the cover is only a placeholder! I'm just working on the framework. It'll be waaay nicer when I'm done.

Jellby
05-18-2010, 01:37 PM
You have:

<item id="cover" href="cover.xhtml" media-type="application/xhtml+xml" />
<item id="cover" href="images/cover.png" media-type="image/png" />

Both with id="cover". Change the second to "cover_pic", for instance, and the last two errors will go away.

Hatgirl
05-18-2010, 02:00 PM
Both with id="cover". Change the second to "cover_pic", for instance, and the last two errors will go away.

D'oh! Thanks, Jellby! That actually solved all of my problems. :iloveyou: Now I get to start doing the markup. This is so much fun!

(shut up, I know I'm a nerd)