View Single Post
Old 01-15-2014, 01:34 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by brontus View Post
I created an epub in Sigil 0.7.2 that uses a 3-part chapter system. The book is broken up into Part, Chapter, Sub-chapter. I used the formatting system of H1 for the Parts, H2 for the Chapters, and H3 for the subchapters ( as outlined by Lulu, as well as being the common sense approach). Chapters are new files, but sub-chapters are contained within each file for the chapter and referenced with a Sigil-generated id created when I had Sigil auto-generate a Table of Contents. Epub was validated with both Flightcrew and Epubcheck with no errors found by either.

When uploaded to Lulu I get the dreaded: "The table of contents contains one or more links without text" error. The error log file is filled with these two errors:
  • ERROR: IOException: Unresolved external XML entity: 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd' in OEBPS/Text/Section0004.xhtml
  • ERROR: Unable to locate element with id 'sigil_toc_id_1' in OEBPS/toc.ncx
The first error is for each chapter that has a sub-chapter (total of 11 - so OEBPS/Text/Section0004.xhtml through OEBPS/Text/Section00016.xhtml minus 11 and 14 for the page dedicated to declaring Parts II and III). The second error is for each and every anchor tag pointing to a subchapter (total of 51 - so sigil_toc_id_1 through sigil_toc_id_51.

Has anyone figured out a way around this without me having to resort to creating new files for each of my 51 sub-chapters to avoid anchors in the toc.ncx?
Rebuild the TOC (NCX) using the TOC editor in calibre.

The Sigil in the error is because someone changed the book after building the NCX with Sigil (or LuLu is another with a lame validator tool)

Sub-chapter? Or just multiple chapters per file?

A mid chapter TOC point might be desired to allow jumping to a in stream Map or diagram
theducks is offline   Reply With Quote