View Single Post
Old 09-18-2010, 04:21 AM   #7
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by bobcdy View Post
I wondered if anyone could help me with this problem.

I'd like to construct a hotlink TOC with links to images in my epub file.
Here's the TOC:

<p class="noindent"><a href="../Text/Section003.xhtml#frontispiece.png">Frontispiece.</a></p>

and here's the .png image code in the epub Section0003.xhtml:

<div class="center"><img alt="frontispiece" class="size-1" src="../Images/frontispiece.png" /></div>
</body>

This works perfectly in Adobe DE on my pc (I don't have a touch screen ereader yet so can't check on a reader), but it gives a validation error with ThreePress validation check. What must I do to eliminate the validation error??

Perhaps someone knows about an epub file on MR that has already solved my probem?
Hi:

I must be missing something--you can do this easily with Sigil, and it will validate perfectly in 1.05 EPUBCheck.

Just open the image "page" up in CV, and do this:

Code:
<div class="center"><h1 title="whatever you want it to say in the TOC"><img alt="frontispiece" class="size-1" src="../Images/frontispiece.png" /></h1></div>
</body>
That's it. It will validate in ThreePress (I do this ALL the time), it'll show up in the TOC (use whatever header you want--h1 through h6), and no problem.

If there's something else going on that I've missed or don't understand, sorry; otherwise, hope this is useful.


Hitch
Hitch is offline   Reply With Quote