PSML

A complete reference of PageSeeder's markup language PSML

<tocref>

Summary

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

Attributes

This element includes the following attributes

NameTypeRequiredDescription
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).

@level

The level in the table of contents.

@idref

The reference to a heading.

@canonical

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.

@prefix

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

Examples

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

Schema

XML Schema

Compatibility

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