Apply the HTML5 outline algorithm.
Returns the outline of a HTML document and optionally transforms the document in a certain way in relation to the outline.
Note that the outline algorithm was never implemented in web browsers nor assistive technology. Therefore it should not be used by authors to convey document structure. The algorithm is however useful in the context of transformations, for example to generate a table of contents, or to rename heading elements according to their outline depth.
Port | Description |
source primary |
HTML documentThe HTML document from which the outline must be extracted. |
input-toc sequence |
Table of contentsA table of contents referencing some sections or headings in the source
document. Only required if the "fix-heading-ranks" option is set to "toc-depth" (and not
more than one document is allowed). The table of contents should be formatted as the
|
Port | Description |
result primary |
The modified HTML document.Depending on the values of the "fix-heading-ranks", "fix-sectioning" and "fix-untitled-sections" options, heading elements may be inserted or renamed and section elements may be inserted, but the outline is guaranteed to be unchanged. All |
toc |
The outline in HTML formatThe outline of the HTML document as a |
outline |
The raw outlineThe unformatted outline of the HTML document as a |
Local Name | Namespace URI | Default | Description |
toc-output-base-uri | '' |
The base URI of the resulting TOC document. May be omitted if the "toc" output is not used. |
|
heading-links-only | 'false' | Whether the |
|
fix-heading-ranks | 'keep' |
Whether to change the rank of heading content elements in the HTML document.
|
|
fix-sectioning | 'keep' |
Whether to insert sectioning content elements.
|
|
fix-untitled-sections | 'keep' |
Whether to generate a heading content element for sections that don't have one.
|
|
fix-untitled-sections-in-outline | 'imply-heading' |
How to handle sections in the outline without an associated heading content element. Setting this option has no effect if "fix-untitled-sections" is set to "imply-heading".
|