Step html-add-ids {http://www.daisy.org/ns/pipeline/xproc}

Add missing IDs to HTML documents and fix duplicate IDs.

Defined in: http://www.daisy.org/pipeline/modules/html-utils/library.xpl

Input Ports

PortDescription
source primary sequence

The input HTML documents

Output Ports

PortDescription
result primary sequence

The processed HTML documents

All elements matched by the match expression have a id attribute.

All id attributes are unique within the whole sequence of HTML documents.

Cross-references between documents have been updated if needed, unless disabled with the "update-links" option.

mapping

d:fileset document that represents the renaming of id attributes.

Options

Local NameNamespace URIDefaultDescription
match'html:body| html:article| html:aside| html:nav| html:section| html:h1|html:h2|html:h3|html:h4|html:h5|html:h6| html:hgroup| *[tokenize(@epub:type,''\s+'')=''pagebreak'']'

Elements that need an id attribute.

Should be a XSLTMatchPattern that matches only elements.

By default matches all body, article, aside, nav, section, h1, h2, h3, h4, h5, h6 and hgroup, and epub:type='pagebreak' elements.

update-links'true'

Whether to update cross-references between documents if id attributes have been changed.