View Full Version : Epub check Errors, Help Please


shampaynes
12-17-2010, 01:37 AM
# ERROR: Beyond-This-Mask.epub/OPS/content.opf(63): bad value for attribute "id"
# ERROR: Beyond-This-Mask.epub/OPS/content.opf(69): bad value for attribute "id"
# ERROR: Beyond-This-Mask.epub/OPS/content.opf(111): bad value for attribute "idref"
# ERROR: Beyond-This-Mask.epub/OPS/content.opf(114): bad value for attribute "id


Those are the errors I keep getting and I have no idea how to fix them. Any suggestions?

HarryT
12-17-2010, 03:23 AM
Asking in the correct forum would be a good start :). I've moved the thread to the appropriate place.

DMSmillie
12-17-2010, 05:01 AM
An EPUB file is essentially just a ZIP file with the file extension .epub. It is a container for the files that contain the book content and formatting ((X)HTML, CSS, images, etc), and a few other files with metadata (XML files). The "content.opf" file is one of the metadata files. The errors you're getting indicate that several of the "id" attributes (and one "idref" attribute) inside the content.opf file have values that aren't allowed in the OPF or XML specification. The numbers in brackets indicate the line number where the error is located in the file.

How to fix - that depends on whether you're creating the EPUB by hand, or if you're using an application to create the EPUB. If you make a copy of the EPUB (so you don't risk messing up the original), then change the file extension of the copy from .epub to .zip you can extract the OPF file and open it up in a plain text or HTML editor to have a look at the content and edit it. If you're not sure what to look for, post a copy of the content.opf file here, and I or someone else will have a look. If you're using an application to create the EPUB file, let us know what it is so someone can suggest the best way to fix these errors.

JSWolf
12-17-2010, 05:08 AM
# ERROR: Beyond-This-Mask.epub/OPS/content.opf(63): bad value for attribute "id"
# ERROR: Beyond-This-Mask.epub/OPS/content.opf(69): bad value for attribute "id"
# ERROR: Beyond-This-Mask.epub/OPS/content.opf(111): bad value for attribute "idref"
# ERROR: Beyond-This-Mask.epub/OPS/content.opf(114): bad value for attribute "id


Those are the errors I keep getting and I have no idea how to fix them. Any suggestions?

Use FlightCrew and you'll get error messages in English instead of gobbledygook. Search MR for the thread on FlightCrew and where to get it.

DMSmillie
12-17-2010, 05:13 AM
Umm... do you maybe mean FlightCrew (http://www.mobileread.com/forums/showthread.php?t=101016), Jon?

JSWolf
12-17-2010, 05:16 AM
Umm... do you maybe mean FlightCrew (http://www.mobileread.com/forums/showthread.php?t=101016), Jon?

Yep. Thanks!

Jellby
12-17-2010, 06:08 AM
Those are the errors I keep getting and I have no idea how to fix them. Any suggestions?

The value of the "id" attribute (and "idref") must start with a letter, not a number. Is that your case?