|  11-11-2009, 04:56 AM | #1 | 
| Member  Posts: 13 Karma: 10 Join Date: Nov 2008 Device: Various | 
				
				Nested navPoint problem
			 
			
			Hi all, I'm trying to convert an opf file to a .mobi using ebook-convert, and I'm having a problem with nested navpoints in the ncx. Whenever I nest them like this: Code: <navPoint class='chapter' id='book-Z-H-9_chap_1' playOrder='5'>
  <navLabel>
    <text>1 Building Abstractions with Procedures</text>
  </navLabel>
  <content src='book-Z-H-9.xhtml#_chap_1'/>
  <navPoint class='chapter' id='book-Z-H-10_sec_1.1' playOrder='6'>
    <navLabel>
      <text>1.1 The Elements of Programming</text>
    </navLabel>
    <content src='book-Z-H-10.xhtml#_sec_1.1'/>
    <navPoint class='chapter' id='book-Z-H-10_sec_1.1.1' playOrder='7'>
      <navLabel>
        <text>1.1.1 Expressions</text>
      </navLabel>
      <content src='book-Z-H-10.xhtml#_sec_1.1.1'/>
    </navPoint>
etc etcskipping class: chapter depth 3 at position 4 skipping class: chapter depth 2 at position 5 And these items don't appear in the navpoint list. It always skips ths items which contain other navPoints. Any ideas why? This is with 0.6.18 on OSX. Thanks, Colin | 
|   |   | 
|  11-11-2009, 10:18 AM | #2 | 
| Comparer of the Ephemeris            Posts: 1,496 Karma: 424697 Join Date: Mar 2009 Device: iPad | 
			
			Colin: The simple answer is to not nest the navpoints, but to keep them all at the same level, even though they represent hierarchical content. Your profile says 'Iliad'; does the Iliad have the ability to show the hierarchy of a book somewhere in its UI? On the Kindle, the only purpose of the navPoints is to specify where the destination points of a left click or right click of the 5-way controller will take you. I think this code is optimized for the Kindle. Hope this helps. G | 
|   |   | 
|  11-11-2009, 04:27 PM | #3 | 
| Member  Posts: 13 Karma: 10 Join Date: Nov 2008 Device: Various | 
			
			Hi G, Thanks, that's pretty much what I was thinking of doing, I just wanted to check if it was possible. I now have a Kindle DX, I just haven't updated my profile yet. The navpoints are great on the Kindle, being able to go from chapter to chapter is fantastic. Thanks, Colin | 
|   |   | 
|  12-20-2009, 11:24 AM | #4 | 
| Member  Posts: 15 Karma: 12 Join Date: Nov 2009 Device: sony prs600 | 
				
				set level
			 
			
			did you set the level to 3 in th ncx ? <meta name="dtb:depth" content="3"/> | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| NCX creation -- nested or not, css classes | illustrata | ePub | 3 | 08-25-2010 08:56 AM | 
| Content nested collections | alexxx | Amazon Kindle | 6 | 06-22-2010 06:05 PM | 
| PRS-500 battery problem, but the battery's not the problem | ZachC | Sony Reader | 7 | 01-11-2010 11:46 PM | 
| toc.ncx navpoint content=src empty? | KevinH | Sigil | 6 | 11-23-2009 01:39 PM | 
| Are Nested TOCs Possible? | VikingDave | Sony Reader | 11 | 12-28-2007 07:58 PM |