View Single Post
Old 12-01-2016, 04:24 AM   #1
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 579
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
ToC help needed: nav.xhtml

I am trying to add a ToC to a book, but when I do I get two files: toc.ncx and nav.xhtml, both of which are marked with a ToC icon, and a warning that nav.xhtml isn't referenced. Annoyingly, nav.xhtml shows up as the last page of the book when I look at it in a reader.

The OPF file contains this:
Code:
    ...
    <item href="toc.ncx" id="toc" media-type="application/x-dtbncx+xml"/>
    <item href="nav.xhtml" id="nav" media-type="application/xhtml+xml" properties="nav"/>
  </manifest>
  <spine toc="toc">
    ...
I tried moving the properties="nav" attribute to the entry for toc.ncx, and then I get an error: "missing ToC in navigation document". I've looked at other books and can't see what the problem is... they just have toc.ncx marked as the ToC with properties="nav", and the id referenced as the toc in the <spine> tag.

Can anyone tell me what is going on here, why the nav.xhtml is created, and how I can get rid of it?
Phssthpok is offline   Reply With Quote