Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-18-2013, 12:32 AM   #1
wyatt650
Junior Member
wyatt650 began at the beginning.
 
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.
wyatt650 is offline   Reply With Quote
Old 04-18-2013, 02:33 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,011
Karma: 3618999
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
There is a wrong definition in your body tag.
Toxaris is offline   Reply With Quote
Old 04-18-2013, 08:56 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,273
Karma: 42298328
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' />
placed before any block elements (especially any styled block elements).
DiapDealer is online now   Reply With Quote
Old 04-18-2013, 01:00 PM   #4
wyatt650
Junior Member
wyatt650 began at the beginning.
 
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.
wyatt650 is offline   Reply With Quote
Old 04-18-2013, 01:41 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,273
Karma: 42298328
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Good deal.
DiapDealer is online now   Reply With Quote
Reply

Tags
attribute, body, declared, element, link

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
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
ePub validation error help "attribute border is not declared for element img bmacklin ePub 11 09-20-2012 07:22 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


All times are GMT -4. The time now is 12:47 PM.


MobileRead.com is a privately owned, operated and funded community.