Step html-update-links {http://www.daisy.org/ns/pipeline/xproc}

Update the links in a HTML document after resources have been relocated.

Can also be used to process an SVG document.

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

Input Ports

Port Description
source primary

The input HTML document

If the HTML document itself is being relocated, the base URI of this document is assumed to correspond with the original location.

mapping

A d:fileset document that defines the relocation of resources.

Output Ports

Port Description
result primary

The output HTML document with updated links

Options

Local Name Namespace URI Default Description
source-renamed false()

Whether the source document itself has previously been renamed according to "mapping" or not. In other words, whether the URI of the source document is to be compared with the href rather than the original-href attributes of the "mapping" document. By default it is assumed that the renaming is done after this step.