Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (33 sloc) 1.25 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1">
<docTitle><text>[% title %]</docTitle>
<navMap>
<navPoint id="index" playOrder="0">
<navLabel><text>[% title %] - Table of Contents</text></navLabel><content src="index.html"/>
</navPoint>
[% num = 1 -%]
[% FOREACH part IN parts -%]
[% IF part.href -%]
<navPoint id="item[% num %]" playOrder="[% num %]">
<navLabel><text>[% part.title %]</text></navLabel><content src="[% part.href %]"/>
</navPoint>
[% num = num + 1 -%]
[% END -%]
[% FOREACH chapter IN part.chapters -%]
[% IF chapter.href -%]
<navPoint id="item[% num %]" playOrder="[% num %]">
<navLabel><text>[% chapter.title %]</text></navLabel><content src="[% chapter.href %]"/>
</navPoint>
[% num = num + 1 -%]
[% END -%]
[% FOREACH section IN chapter.sections -%]
<navPoint id="item[% num %]" playOrder="[% num %]">
<navLabel><text>[% section.title %]</text></navLabel><content src="[% section.href %]"/>
</navPoint>
[% num = num + 1 -%]
[% END -%]
[% END -%]
[% END -%]
</navMap>
</ncx>