12-20-2017, 01:16 PM | #1 |
Member
Posts: 11
Karma: 10
Join Date: Dec 2017
Device: all
|
Epub Validator nav.xhtml incomplete ol missing
Hello dears
passing my e-books in the Epub validator for submission on Smashwords, I'm getting the following error message: Error while parsing file 'element "nav" incomplete; missing required element "ol"'. Here is the content of my nav.xhtml file (the ebook doesn't have a toc as it is very small, just one page): Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="fr-FR" xml:lang="fr-FR"> <head> <meta charset="utf-8"/> <style type="text/css"> nav#landmarks, nav#page-list { display:none; } ol { list-style-type: none; } </style> <title></title></head> <body epub:type="frontmatter"> <nav epub:type="toc" id="toc"> </nav> <nav epub:type="landmarks" id="landmarks" hidden=""> </nav> </body> </html> Code:
nav#landmarks, nav#page-list { display:none; } ol { list-style-type: none; } </style> thanks |
12-20-2017, 02:18 PM | #2 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
This really has nothing to do with Sigil. A better place to post this is probably the ePub forum here.
Instead of removing the ol style, you should add ol tags to the toc and landmarks and add at least one entry under each. Check out sample nav documents to see what the proper syntax is. |
Advert | |
|
12-20-2017, 04:51 PM | #3 |
null operator (he/him)
Posts: 20,566
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I have what I regard as an ugly way around this issue - so I'd also be interested in a more elegant approach.
Hopefully a Sigil mod will move the thread to the Epub forum. BR |
12-20-2017, 06:23 PM | #4 |
Resident Curmudgeon
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
eBooks for Smahswords do not need a nav as you don't need ePub 3. Just use ePub 2 and delete nav and just stick with the NCX ToC.
|
12-21-2017, 12:41 AM | #5 | |
just an egg
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
@Akasashasha — Perhaps inserting a single "placeholder" item would resolve it? Code:
<ol> <li> <a href="filename.xhtml">-</a> </li> </ol> ETA: Oh wait, I see KevinH already suggested this! Note: "filename.xhtml" is an example only. The actual link must be a valid link for the epub to vaidate. The text can be anything you want. I've inserted a hyphen (-) here because you don't seem to want any text in your TOC and a hyphen is small. Last edited by odamizu; 12-21-2017 at 09:46 PM. Reason: clarity |
|
Advert | |
|
12-21-2017, 03:50 AM | #6 |
Member
Posts: 11
Karma: 10
Join Date: Dec 2017
Device: all
|
Hi guys
first thanks for all your answers: @KevinH & BetterRed: you're right maybe this is not the best place but as I'm using Sigil I thought it might come from the software default behavior ... @JSWolf: I would like to use epub 3 as there are lots of improvements that I implemented in my ebooks (like footnotes appearing as pop-up thanks to the aside element, figure elements, and many others ... ) @odamizu: I tried many different things, deleting the nav file alltogether, adding some fake ol with a fake link as you suggested, etc ... nothing seems to work ... still stuck in here ... any other suggestion ? |
12-21-2017, 04:32 AM | #7 | |
Resident Curmudgeon
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
All you are doing is wasting your time with something that in most cases won't work. |
|
12-21-2017, 05:06 AM | #8 |
Member
Posts: 11
Karma: 10
Join Date: Dec 2017
Device: all
|
@JSWolf : ok, soooo, according to IDPF, epub 3 should be the standard, but most of the e-reader tablets stick to epub 2, that's right ? once again communication is really weird in between geeks who create new standards and factories who create support materials.
Following your advice I downgraded one of my ebook to epub 2 and it pass the Epub check with no error :-( ... sound like a good news, but I really loved epub 3 ... anyway thanks a lot everyone, it's great that this problem got solved in less than 24hours !!! amazing community out there ! I'll rework all my ebooks and create both epub 2 and 3 versions (v2 for Smashwords, v3 for my own distribution channel) best wishes for the new year and happy Xmas / Hanoucca / or happy whatever-you-believe-in-and-is-an-opportunity-for-a-end-of-year-familly-party :-) |
12-21-2017, 09:46 AM | #9 | |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
No,
I was suggesting an actual entry in the toc section that points to your single chapter (either to the entire xhtml file or to an id attached to the first header tag). And in the landmarks section a single link to the start of text to create a minimal nav. Also, Don't let JSWolf turn you away from epub3 as he seems to be more than a bit biased against this format and seems to want eveyone to stay with epub2 forever. Kevin Quote:
|
|
12-21-2017, 11:40 AM | #10 | |
Resident Curmudgeon
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Kobo can handle ePub 3, but they have to be converted to kepub. Sony doesn't support ePub 3. Nook does not support ePub 3. I'm not sure how tablet epub apps handle ePub 3. But Marvin (popular for iOS) for not support ePub 3. |
|
12-21-2017, 12:42 PM | #11 | |
Member
Posts: 11
Karma: 10
Join Date: Dec 2017
Device: all
|
Quote:
But that's not the subject in here, just as reminder: I want to pass the epubcheck test with epub 3 files which are rejected ... answer so far from all of you seems to be that standard is still to epub 2 (and that's actually what I experience, as I said my ebook pass the test in epub 2 version, but the epub 3 version I created don't - and it has nothing to do with the way I'm coding ) Soo, should we close this thread ? Anyone in here has been working on Epubcheck validator and can report on this weird situation ? Also I'm gonna complain to the Epubcheck validator team (if I find where to contact them). love |
|
12-21-2017, 12:59 PM | #12 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I think it may have to do with the way you are coding it. A nav is required in epub3 (just like a toc.ncx is in epub2) and you do need ol and li tags properly nested in the nav according to the error message you received.
Do you get the same error message if you check your epub3 with the latest version of epubcheck? |
12-21-2017, 01:07 PM | #13 |
Member
Posts: 11
Karma: 10
Join Date: Dec 2017
Device: all
|
yep, I'm using the last version of Epubcheck ... and all epub 3 features are considered as error.
Once I get rid of them and reformat my ebook with epub 2 standards, everything is perfect. One simple example: when testing epub 3 the epub:type as well as the aside, figure and figcaption elements are all considered as error ... this are all elements used in epub 3. |
12-21-2017, 02:05 PM | #14 |
Resident Curmudgeon
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But what will happen when these ePub 3 features won't work? People who buy eBooks at Smashwords aren't expecting a real ePub 3 eBook.
|
12-21-2017, 02:11 PM | #15 |
Member
Posts: 11
Karma: 10
Join Date: Dec 2017
Device: all
|
yep. got it ...
Will have to wait till epub 3 REALLY becomes standard in all e-readers, meanwhile I'll produce epub 2 for wider distri (and epub 3 for my friends and myself) Sad to downgrade after having learned and master all this nice features, but most important is that people can read our books without troubles isn't it ? Will also write to the Smashword team to check their point of view on this question and report it in this thread. love |
Tags |
epub 3, epub check, nav.xhtml |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil Nav.xhtml Line Break Issue | Dave_M | Sigil | 11 | 10-26-2017 07:45 PM |
TOC nav.xhtml issue | ebookscovers | Conversion | 1 | 05-06-2017 11:12 AM |
ToC help needed: nav.xhtml | Phssthpok | Editor | 10 | 04-14-2017 04:58 AM |
missing elements from validator but they're there howcum? | Allthunbs | Sigil | 3 | 02-03-2014 07:17 AM |