Thread: aum epub fixer
View Single Post
Old 04-18-2011, 11:45 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by marytg View Post
I have successfully created a book using HTML for Kindle. Now I am trying to create an ePub format for my next book and have run into a stubborn problem. The HTML works fine, also works when converted to PDF. But I get the "fragment identifier is not defined" error in epubcheck.

I link from my headings back to the table of contents. It is a technical book, not fiction, so this feature is quite useful and important to me.

Here is the code that generates the error in epub:
<p id="NavigationTips"><a href="#aTableofContents"><b><i>Navigation Tips</i></b></a></p>

If I remove "<a href="#aTableofContents">", it does not generate the frag id error.

This is the target code for the TOC:
<h3 id="aTableofContents"><b><i>Contents</i></b></h3>

I have validated the code in HTML Validator. It does not report an error with the code with the href back to the TOC.

I am no expert at HTML, so it could be just a newbie coding error, but I have tried everything and I'm hoping for some expert advice.

Thanks,
Mary
Since you are dealing with ePub here, you can just delete the internal ToC as long as you have a good external ToC. ePub does not need an internal ToC. So that is just bloat.
JSWolf is offline   Reply With Quote