<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - EPUB Export: Headings Levels other than Heading 1 are omitted in Outline"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=114164#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - EPUB Export: Headings Levels other than Heading 1 are omitted in Outline"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=114164">bug 114164</a>
from <span class="vcard"><a class="email" href="mailto:suokunlong@126.com" title="Kevin Suo <suokunlong@126.com>"> <span class="fn">Kevin Suo</span></a>
</span></b>
<pre>These are very good epub3 samples:
<a href="http://idpf.github.io/epub3-samples/30/samples.html">http://idpf.github.io/epub3-samples/30/samples.html</a>
Among these, the 2nd one, "Children's Literature", seems to have a multi-level
TOC. The source codes for this epub can be found at:
<a href="https://github.com/IDPF/epub3-samples/tree/master/30/childrens-literature/EPUB">https://github.com/IDPF/epub3-samples/tree/master/30/childrens-literature/EPUB</a>
I did a brief analysis of the toc.ncx, and find that the implementation is
simple: (i.e., navPoint inside navPoint)
<navPoint id="np-319">
<navLabel>
<text>190 A FOUR-LEAVED CLOVER</text>
</navLabel>
<content src="s04.xhtml#pgepubid00503"/>
<navPoint id="d1e54">
<navLabel>
<text> I. The Rabbi and the Diadem </text>
</navLabel>
<content src="s04.xhtml#pgepubid99001"/>
</navPoint>
<navPoint id="d1e60">
<navLabel>
<text> II. Friendship </text>
</navLabel>
<content src="s04.xhtml#pgepubid99002"/>
</navPoint>
<navPoint id="d1e66">
<navLabel>
<text> III. True Charity </text>
</navLabel>
<content src="s04.xhtml#pgepubid99003"/>
</navPoint>
<navPoint id="d1e72">
<navLabel>
<text> IV. An Eastern Garden </text>
</navLabel>
<content src="s04.xhtml#pgepubid99004"/>
</navPoint>
</navPoint>
Also, you do not need to separate the sub-sections. Set a "name=pgepubid99001"
in the target heading and use sth like src="s04.xhtml#pgepubid99001" in the
TOC.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>