If ids were as sec1, sec1.1, sec1.1a etc. where I could specify a range of header tags to process e.g. H2 to H4 then after generating the XHTML TOC I could use regex to style sections like:
Code:
<a href=“./file.xhtml#sec1.1”>1.1</a> Section title</a>
I often tend to study academic or scientific works where there could be 50-100+ sections and coding as such would more easily allow annotations or highlights within the toc so I can keep track of notable sections.