Thread: aum epub fixer
View Single Post
Old 04-18-2011, 11:35 AM   #3
marytg
EPUB designer
marytg doesn't littermarytg doesn't litter
 
Posts: 13
Karma: 180
Join Date: Apr 2011
Device: Nook Color
Question Fragment identifier is not defined

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
marytg is offline   Reply With Quote