Why are you doing it that way?
If you start with an EPUB2, The TOC tool will create a nested NCX TOC from the H# levels in the sections.
The Editor can the make an inline TOC from that. Tools:Table of Contents:inline TOC
OTOH Kindles may not support very deep nesting (been awhile since I made one for my K4)
|