04-18-2013, 12:32 AM | #1 |
Junior Member
Posts: 9
Karma: 10
Join Date: Apr 2013
Device: kindle
|
blank TOC page - attribute 'link' not declared for element 'body'
I have generated an .epub file with Sigil, including TOC and chapter links that work perfectly.
But the FlightCrew Validater shows errors on the TOC section for all of the chapters: attribute 'link' not declared for element 'body' attribute 'vlink' not declared for element 'body' When I generate a .mobi file with Kindle Previewer, jumping from TOC to a chapter displays correctly. The TOC and NAV controls on the navigation bar also work correctly. But jumping from a chapter back to TOC displays a blank page. If I Page Previous or Page Next, the TOC page then displays correctly. |
04-18-2013, 02:33 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
There is a wrong definition in your body tag.
|
Advert | |
|
04-18-2013, 08:56 AM | #3 |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The link and vlink stuff has nothing to do with with your blank page problems. Get rid if the unnecessary attributes from the body tag and the error will go away.
The link taking you to a blank page is unrelated to the attribute errors (and really unrelated to Sigil). Mobi is very picky about where the anchor you're linking to is placed. The best practice is to not link to anchors (or ids) at all. Make your toc an entirely separate (x)html page and link directly to it (no url fragments). Linking to the ids of headings will get you into trouble with mobi every time. If you must link to somewhere in the middle of an html page, link to an anchor tag Code:
<a id='xx' /> |
04-18-2013, 01:00 PM | #4 |
Junior Member
Posts: 9
Karma: 10
Join Date: Apr 2013
Device: kindle
|
Thanks DiapDealer!
Yes, the problem was that I had set up a toc anchor on the line "Table of Contents" on the TOC page. When I removed that anchor, and linked each Chapter title line back to the TOC page .htm, everything worked correctly in mobi. |
04-18-2013, 01:41 PM | #5 |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Good deal.
|
Advert | |
|
Tags |
attribute, body, declared, element, link |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub validation error help "attribute border is not declared for element img | bmacklin | ePub | 12 | 11-06-2015 11:00 AM |
TOC chapter jump blank page - kindle | wyatt650 | Sigil | 3 | 04-12-2013 03:27 PM |
attribute "valign" is not declared for element 'table' | boksida | Sigil | 15 | 01-27-2013 03:28 PM |
Help! ePub errors -- attribute link/text not declared | katyya | ePub | 1 | 11-17-2011 02:13 PM |
Validation: attribute 'start' is not declared for element 'ol' | WS64 | Sigil | 4 | 10-06-2011 03:15 AM |