Oh I'm sorry I misunderstood. The --level1-tov and --level2-toc are meant for a single HTML file. If you want to use them with multiple HTML files, I would suggest creating the following HTML in the individual files:
Code:
<h1 class="level1_toc">chapter title</h1>
<h2 class="level2_toc">subsection title1</h2>
<h2 class="level2_toc">subsection title2</h2>
Then run:
Code:
html2epub --level1-toc '//h1[@class="level1_toc"]' --level2-toc '//h1[@class="level2_toc"]' index.html