Hi everyone!
As a result of this discussion, I edited my "Kindle tricks" page and downloadable ebook to include a full working example of an html file that will produce an ebook with a working table of contents.
You can go to the page and ebook download by clicking on my signature, or follow the link to jump straight to the
ebook creation section.
Warmest wishes to all,
Andy