![]() |
#1 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Nov 2010
Device: Sony eReader
|
Can a toc.ncx point to an empty content tag?
To simplify:
Curious if anyone knows a way to get a TOC to have a top-level header point to an empty link? I've tried using <content src="" /> and <content src="#" /> but neither seem to not want to validate via EPUBCheck. I'm trying to make a nested list in the nav TOC, but there is no actual page for the header. Example: List Title [empty, no link] List Item 1 [links to page] List Item 2 [links to page] List Item 3 [links to page] Or is it just possible that it is a requirement of the toc.ncx to have the <content> pointing somewhere in the manifest?THANKS!!! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
IMHO, there's no point in having TOC entries that go nowhere. If you still want to keep them, why don't you use the id of the item immediately following the title?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Nov 2010
Device: Sony eReader
|
I agree completely, which is why I've never run into this before. The TOC entries I have nested are not in logical order in the book, therefore there isn't any type of top-level heading/title for the list. On thinking about it more, I'll take your advice! Cheers and thanks.
|
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Maybe what you need is not a TOC entry, but a <navList> element. Unfortunately, I know of no reading system that supports <navList>
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
What if you just leave out the <content>?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Nov 2010
Device: Sony eReader
|
Hmm, good suggestion, thought that might work but it produces: 'element "navPoint" not allowed yet; missing required element "content"' as an error.
Oh well, I suppose these types of issues will probably be rendered moot on moving to EPUB3 and the nav document. |
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,001
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Example: List Title [links to same page as item 1] List Item 1 [links to page] List Item 2 [links to page] List Item 3 [links to page]
|
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Nov 2010
Device: Sony eReader
|
Cheers, thanks for all the help on this one. That seems to be about as close as we can get to a solution. Interested to see what EPUB3 does for the <nav> document.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] calibre not creating content.opf or toc.ncx files during conversion | foxxywith2xs | Calibre | 7 | 12-16-2012 07:49 PM |
Kindler previewer not recognizing toc.ncx file, my html toc, or the start point... | petercrowell | Kindle Formats | 2 | 05-01-2012 08:14 AM |
Inline TOC from toc.ncx | elmago79 | Kindle Formats | 38 | 03-25-2011 12:56 PM |
Use Regex to Code an Inline TOC, from an External TOC's .ncx File | mostlynovels | ePub | 2 | 03-16-2011 12:15 PM |
toc.ncx navpoint content=src empty? | KevinH | Sigil | 6 | 11-23-2009 01:39 PM |