Body: <p>My viewer has support for a TOC populated from NCX navMap entries.
  However some books I have come across have some pages in the navMap section and some pages only in the pageList section.
  e.g.</p>
  
  <pre><code>&lt;navMap&gt;
      &lt;navPoint class="h1" id="ch1"&gt;
          &lt;navLabel&gt;
              &lt;text&gt;Title&lt;/text&gt;
          &lt;/navLabel&gt;
          &lt;content src="title.html#ch_1"/&gt;
          &lt;navPoint class="h2" id="ch_1_1"&gt;
              &lt;navLabel&gt;
                  &lt;text&gt;Title&lt;/text&gt;
              &lt;/navLabel&gt;
              &lt;content src="title.html#ch_1_1"/&gt;
          &lt;/navPoint&gt;
      &lt;/navPoint&gt;
  &lt;/navMap&gt;
  
  &lt;pageList&gt;
      &lt;pageTarget id="p1" type="normal" value="1"&gt;
          &lt;navLabel&gt;&lt;text&gt;1&lt;/text&gt;&lt;/navLabel&gt;
          &lt;content src="pages.html#p1"/&gt;
      &lt;/pageTarget&gt;
      &lt;pageTarget id="p2" type="normal" value="2"&gt;
          &lt;navLabel&gt;&lt;text&gt;2&lt;/text&gt;&lt;/navLabel&gt;
          &lt;content src="pages.html#p2"/&gt;
      &lt;/pageTarget&gt;        
  &lt;/pageList&gt;
  </code></pre>
  
  <p>I could just add pages after the navMap contents but I'm concerned that it's perfectly valid to populate both navigation types from the same source xhtml and I don't want parts of the book effectively appearing twice, once for the navMap and once for the pageList.
  e.g.</p>
  
  <pre><code>&lt;navMap&gt;
      &lt;navPoint class="h1" id="ch1"&gt;
          &lt;navLabel&gt;
              &lt;text&gt;Chapter 1&lt;/text&gt;
          &lt;/navLabel&gt;
          &lt;content src="book.html#ch_1"/&gt;
          &lt;navPoint class="h2" id="ch_1_1"&gt;
              &lt;navLabel&gt;
                  &lt;text&gt;Chapter 1&lt;/text&gt;
              &lt;/navLabel&gt;
              &lt;content src="book.html#ch_1"/&gt;
          &lt;/navPoint&gt;
      &lt;/navPoint&gt;
  &lt;/navMap&gt;
  
  &lt;pageList&gt;
      &lt;pageTarget id="p1" type="normal" value="1"&gt;
          &lt;navLabel&gt;&lt;text&gt;1&lt;/text&gt;&lt;/navLabel&gt;
          &lt;content src="book.html#p1"/&gt;
      &lt;/pageTarget&gt;
      &lt;pageTarget id="p2" type="normal" value="2"&gt;
          &lt;navLabel&gt;&lt;text&gt;2&lt;/text&gt;&lt;/navLabel&gt;
          &lt;content src="book.html#p2"/&gt;
      &lt;/pageTarget&gt;        
  &lt;/pageList&gt;
  </code></pre>
  
  <p>The specs seem vague on what to do. What is the recommended way to deal with this situation?</p>
  
Tags: <epub><ncx>
Title: EPUB 2 NCX How Should I Support pageList?
UserDisplayName: Matt King
ThreadText: # EPUB 2 NCX How Should I Support pageList?
  
  (Asked by: username_0 on 2016-04-05)
  
  My viewer has support for a TOC populated from NCX navMap entries.
  However some books I have come across have some pages in the navMap section and some pages only in the pageList section.
  e.g.
  
      
          
              Title
          
          
          
              
                  Title
              
              
          
      
  
  
  
      
          1
          
      
      
          2
          
              
  
  
  I could just add pages after the navMap contents but I'm concerned that it's perfectly valid to populate both navigation types from the same source xhtml and I don't want parts of the book effectively appearing twice, once for the navMap and once for the pageList.
  e.g.
  
      
          
              Chapter 1
          
          
          
              
                  Chapter 1
              
              
          
      
  
  
  
      
          1
          
      
      
          2
          
              
  
  
  The specs seem vague on what to do. What is the recommended way to deal with this situation?
  
  **Tags:** epub, ncx
  
  
  ---
  
  ## 0 answers
  
  