View Single Post
Old 04-13-2011, 05:43 PM   #1
gdgibson
Member
gdgibson began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Apr 2011
Device: All
Indesign CS5 to ePub: epubcheck error

So I've exported a book from IDCS5 to ePub and, for the first time, run it through ePubcheck. Most of the errors involve pretty minor stuff, easily edited, but one has me stumped:

Quote:
WARNING: /Users/. . . file.epub: item (__MACOSX/OEBPS/._template.css) exists in the zip file, but is not declared in the OPF file
I tried editing the OPF file in TextEdit (via Springy) and it sort of worked, in that I didn't get this error when I ran epubcheck again. Unfortunately it now says that none of my image files are referenced in the opf (coincidentally, all the references appear below the change I made in the file). So I clearly screwed up the coding.

So - two questions: first, can someone point me to an all-purpose primer on editing the OPF file? And how is it possible that IDCS5 would fail to include the template.css in the OPF file? Does this happen a lot?

By the way, here's the line of code I added (in bold), with the previous and succeeding line in roman:

Quote:
<item id="[filename]" href="[filename].xhtml" media-type="application/xhtml+xml"/><item id>="template" href="template.css" media-type="application/xhtml+xml"/><item id="[filename]" href="images/[filename].jpeg" media-type="image/jpeg"/>
and here's the standard error message for the missing items:

Quote:
WARNING: /Users/[filename].epub: item (OEBPS/images/[filename].jpeg) exists in the zip file, but is not declared in the OPF file
Any help will be appreciated!
gdgibson is offline   Reply With Quote