12-03-2011, 08:43 AM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2011
Device: none
|
epub errors Help!
I have been working on my epub in sigil (file created in indesign) and have cleaned up all errors except the toc.ncx file, "unsupported protocol in URL" line 1- Can anyone help me resolve this?
This same error comes up both in Sigil epub check and the online epubchecker (I did both just in case.) <?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE ncx PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> Ive been looking at it until im cross eyed and need to get this doc up asap. Thanks! |
12-03-2011, 11:41 AM | #2 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It that's the first line of your toc.ncx file, it's all wrong. It looks like you've just taken the header from an XHTML file and just changed the 'html' (immediately following the !DOCTYPE) to 'ncx'.
An NCX header should look like this: Code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"><ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1"> <head> |
Advert | |
|
12-03-2011, 11:42 AM | #3 |
Evangelist
Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
|
ncx not html for your head element and your doctype declaration seems off.
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"> <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1"> |
12-03-2011, 11:52 AM | #4 |
Evangelist
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
|
Code:
<!DOCTYPE ncx PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"> Edit: and beaten by everyone Last edited by Serpentine; 12-03-2011 at 11:53 AM. Reason: too sloooowwww |
12-03-2011, 12:07 PM | #5 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2011
Device: none
|
still no go...
so... I tried all the options suggested, the first two gave me more errors in the file, the last one was "unsupported protocol in URL ".
I freely admit I dont know what Im doing, there could be all number of things Ive missed in getting this file right. I have attached the file for review... I sure appreciate your help. |
Advert | |
|
12-03-2011, 01:18 PM | #6 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can't guarantee there's no typos, but I tried to whip your file into shape.
Make sure you rename it to toc.ncx |
12-03-2011, 04:18 PM | #7 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2011
Device: none
|
Thanks DiapDealer!! It looks lovely and tidy...but Im STILL getting an error
Its says "expected end of tag "navpoint" at line 500... and when I check line 500 the tag </navpoint> is there (as expected!) why would it not recognize it? |
12-03-2011, 04:38 PM | #8 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
12-03-2011, 05:31 PM | #9 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2011
Device: none
|
LOL I guess Sigil adds lines (and maybe spaces...?) to the code. Grrr.
Any suggestions......please this is my last hope LOL Last edited by jaexterr; 12-03-2011 at 07:08 PM. |
12-04-2011, 08:06 AM | #10 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2011
Device: none
|
still epub error altho different error....
I changed all the <content src="Text/cover.html"/> to </content src="Text/cover.html"> and the error changed to "expected end of tag "navPoint". However the correct tag seems to be there on the next line, line 19. Does anyone know why it wouldnt read it correctly? Everything else seems to read great! (the bracket below is not in the code, just showing line 18 in text) Thanks!
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"> <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1"> <head> <meta name="dtb:uid" content="123456789X"/> <!-- same as in .opf --> <meta name="dtb:depth" content="1"/> <!-- 1 or higher --> <meta name="dtb:totalPageCount" content="0"/> <!-- must be 0 --> <meta name="dtb:maxPageNumber" content="0"/> <!-- must be 0 --> </head> <docTitle> <text>The Chronicles of Trayvian James, Book 1: Dreamworld</text> </docTitle> <navMap> <navPoint id="navPoint-1" playOrder="1"> <navLabel> <text>Cover</text> </navLabel> (18) </content src="Text/cover.html"> </navPoint> <navPoint id="navPoint-2" playOrder="2"> <navLabel> <text>preface1</text> </navLabel> </content src="Text/preface1.html"> </navPoint> |
12-04-2011, 08:19 AM | #11 | |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
12-04-2011, 12:39 PM | #12 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2011
Device: none
|
ok will do - thanks for the tip! Any ideas on why its still not going through?
|
12-04-2011, 04:53 PM | #13 |
Evangelist
Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
|
In XML all start and end tags must be matched:
So there must be an end tag </foo> for every start tag <foo>, and vice versa. Note that 'empty tags' <foo /> count as both start on stop tags (they match themselves) So by changing all the <content ... /> to </content ... > You changed them from empty tags to end tags which made your XML invalid since the tags were unbalanced (end tags with no start tags) - which the parser complained about in it's cryptic fashion. -- p.s If Sigil is causing you problems: 1.) Hand edit the .ncx file and manually up the epub as a zip container. 2.) Report the bug. |
12-04-2011, 08:07 PM | #14 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2011
Device: none
|
you mean its not me.....? LOL
Finally, it works , and Im not even sure I did anything!! Thanks |
Tags |
epub error, epub errors |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub errors | Harden Taylor | Introduce Yourself | 2 | 07-17-2012 02:22 AM |
Help with EPUB errors | overholt001 | Workshop | 4 | 04-09-2011 10:43 PM |
ePub Errors | mrbillb | ePub | 1 | 08-11-2010 08:24 PM |
ePub errors | Hatgirl | ePub | 2 | 05-18-2010 01:00 PM |
Errors in epub | novels.books | ePub | 5 | 11-27-2009 03:54 AM |