I may be missing something very obvious structurally, but the problem is that I am generating a table of contents based on a TOPIC TITLE on a page and the SUBHEADERS on the pages. Both have styles identified, but when generating the TOC, the SUBHEADERS from the "next" pages appear under the TOPIC TITLES of the previous pages. For example, if I have SUBHEADER "A" and "B" listed on the page with TOPIC TITLE "TB". In the generated TOC, SUBHEADERS "A" and "B" are listed under TOPIC TITLE "TA" which is the page prior to "TB". Don't get it and can't seem to solve it. If anyone can shed some light, please advise.