aboutsummaryrefslogtreecommitdiff
path: root/epub/templates/toc.ncx
blob: e7dd391a9f2025ec6015a998d25d5c809dbb7294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/"
    xmlns:py="http://genshi.edgewall.org/"
    version="2005-1">
  <head>
    <meta name="dtb:uid" content="urn:uuid:${book.UUID}"/>
    <meta name="dtb:depth" content="${book.getTocMapHeight()}"/>
    <meta name="dtb:totalPageCount" content="0"/>
    <meta name="dtb:maxPageNumber" content="0"/>
  </head>
  <docTitle>
    <text>${book.title}</text>
  </docTitle>
  <navMap>
    <py:def function="navPoint(node)">
    <navPoint id="navPoint-${node.playOrder}" playOrder="${node.playOrder}">
      <navLabel><text>${node.title}</text></navLabel>
      <content src="${node.href}"/>
      <py:for each="child in node.children">
      ${navPoint(child)}
      </py:for>
    </navPoint>
    </py:def>
    <py:for each="child in book.getTocMapRoot().children">
    ${navPoint(child)}
    </py:for>
  </navMap>
</ncx>
bgstack15