A complete reference of PageSeeder's markup language PSML



The <tocref> element is a table of content reference in processed PSML.

When <tocref> are generated, every <toc> element should contain a reference for all <heading> elements occurring AFTER <toc/> and BEFORE </document> in the same document (including embeded or transcluded <blockxref> content).

Usage context

Element category
PSML levelprocessed
Permitted contentnone
Permitted parent<toc>
HTML equivalent
OpenXML equivalent
PSStandard equivalent


This element includes the following attributes

levelxs:positiveIntegernoThe level in the table of contents
idrefxs:stringnoReference to a heading
canonicalxs:stringnoCanonical prefix (e.g. 1.0.3, 1.1.4)
prefixxs:stringnoActual prefix (e.g. 1.3 or 1.a.iv).


The level in the table of contents.


The reference to a heading.


The canonical prefix is computed from the position of the heading and its position in the heading hierarchy.

It is always a sequence of number separated by '.' and is unique to the heading.


The actual prefix when the formatting rules are applied to the canonical prefix.


  <tocref level="1" idref="toc-0">Master 4</level1>
  <tocref level="2" idref="toc-1"
     canonical="0.1." prefix="1.">Test1</level2>


XML Schema


This element was introduced in the first draft of PSML and is well supported from PageSeeder 5.1.

See also

Created on , last edited on