<toc>
Summary
The <toc>
element is used as a placeholder for the table of content.
It is used to indicate to a PSML processor where to generate the table of content for the document.
Usage context
Element category | structure |
---|---|
PSML level | portable |
Permitted content | none * |
Permitted parent | <document> |
HTML equivalent | no equivalent |
OpenXML equivalent |
* In PSML processed format, the content can be <toc-tree>.
Attributes
No attributes.
Examples
In portable PSML, the <toc>
element is always empty.
<toc/>
When PSML is processed, the table of contents is injected and the <toc>
element content contains a <toc-tree>
element.
<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
<xs:element name="toc"> <xs:complexType/> </xs:element>
Relax Schema
element toc {}
Compatibility
This element was introduced in the first draft of PSML and is well-supported from PageSeeder 5.1.