How about a --level1-toc and --level2-toc options? Each taking an XPath expression. This will allow you to easily create a 2 level hierarchical toc. The idea being that every level2 item will be added to the most recent previous level1 item. For more complex TOC there will be a --use-ncx option.
|