Thread: OPF Errors
View Single Post
Old 05-25-2014, 09:07 PM   #1
mikapanja
Perfectionist
mikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
OPF Errors

@ kovid

1) According to Open Packaging Format (OPF) 2.0.1 v1.0.1 spec,

"The spine element must include the toc attribute, whose value is the id attribute value of the required NCX document declared in manifest."

In other words, there has to be a <spine toc="ncx">, not just <spine>.

I have a book with just a <spine> element (opening tag), and after Check Book there is no warning of this error. Could this be included in Calibre checks?


2) Another book with .opf file starting with:

<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"[]>

Sigil reports "Invalid OPF file", but no error after Check Book. Is it an error or not? If yes, could the DOCTYPE start be reported as one, and users offered a replacement with <?xml version='1.0' encoding='utf-8'?>?

Thanx
mikapanja is offline   Reply With Quote