Code for table of contents in text pattern
![Section separator ---](https://people.uleth.ca/~daniel.odonnell/images/1.gif)
Use the following to put in a table of contents in a text pattern page.
<div id="TOC">
<txp:soo_toc label="Contents" labeltag="h3"/>
</div>
The code will build a TOC for every header that has an IDREF. An example would look like this: h3(#thisIsTheID).
![Section separator: detail from Kakelbont MS 1, a fifteenth-century French Psalter. This image is in the public domain. ----](https://people.uleth.ca/~daniel.odonnell/images/12.png)