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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-01-2013, 04:34 PM   #1
twedigteam
Enthusiast
twedigteam began at the beginning.
 
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!!!
twedigteam is offline   Reply With Quote
Old 02-02-2013, 12:56 AM   #2
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,912
Karma: 4632610
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?
Doitsu is offline   Reply With Quote
 
Enthusiast
Old 02-04-2013, 01:24 PM   #3
twedigteam
Enthusiast
twedigteam began at the beginning.
 
Posts: 38
Karma: 10
Join Date: Nov 2010
Device: Sony eReader
Quote:
Originally Posted by Doitsu View Post
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?
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.
twedigteam is offline   Reply With Quote
Old 02-05-2013, 04:43 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,103
Karma: 4791309
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>
Jellby is offline   Reply With Quote
Old 02-05-2013, 06:28 AM   #5
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: 2,913
Karma: 3022969
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
What if you just leave out the <content>?
Toxaris is offline   Reply With Quote
Old 02-05-2013, 01:22 PM   #6
twedigteam
Enthusiast
twedigteam began at the beginning.
 
Posts: 38
Karma: 10
Join Date: Nov 2010
Device: Sony eReader
Quote:
Originally Posted by Toxaris View Post
What if you just leave out the <content>?
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.
twedigteam is offline   Reply With Quote
Old 02-05-2013, 08:08 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,742
Karma: 17806730
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by twedigteam View Post
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.
I've figured out the solution. For the entry that you want as a header for the top level, put in the same file to go to as the first entry in the next level. That way if anyone does use it to go to a ToC entry, it will go to the first one in level 2. So using your example...

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]
JSWolf is offline   Reply With Quote
Old 02-08-2013, 11:57 AM   #8
twedigteam
Enthusiast
twedigteam began at the beginning.
 
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.
twedigteam is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:03 AM.


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