Very simple. the TOC.ncx is built from the header tags used in the XHTML files. If you want to use an inline TOC, essentially a XHTML file containing the TOC, you don't need header tags. Just just references to the tags, for which you easily can use the id's btw.
Don't forget, tags are for structure, not layout. Layout is handled via the stylesheet.