---
title: "Element <toc-tree>"
source: https://dev.pageseeder.com/psml/elements/element-toc-tree.html
description: "PSML Element reference for <toc-tree>"
last_updated: 2026-08-07T17:09:54+10:00
tokens: ~274
---

# \<toc-tree\>

## Summary

Generated table of contents.

Introduced in v0.12 of the PSML schema, in PageSeeder v5.96.

## Usage context

| Element category |  |
| --- | --- |
| PSML level | processed |
| Permitted content | `<toc-part>` |
| Permitted parent | `<toc>` |
| HTML equivalent | no equivalent |
| OpenXML equivalent | no equivalent |

## Attributes

This element does not have any attribute.

## Examples

```lang-xml

<toc>
  <toc-tree title="Specification">
    <toc-part level="1" title="Introduction" idref="123-1-1-1">
      <toc-part level="2" title="Overview" idref="123-1-2-1"
                prefix="1." canonical="0.1." />
    </toc-part>
  </toc-tree>
</toc>
```

## Schema

### XML Schema

```lang-xml
<xs:element name="toc-tree">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="toc-part" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>
```

### Relax Schema

```lang-relax

element toc-tree {
   element toc-part+
}
```

## Compatibility

This element was introduced in the beta 12 of PSML and is supported from PageSeeder 5.96.

