@ 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