View Single Post
Old 11-11-2009, 04:56 AM   #1
Lemming
Member
Lemming began at the beginning.
 
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 etc
when I run Calibre I see the following message:

skipping 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
Lemming is offline   Reply With Quote