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?