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

PortDescription
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

PortDescription
result primary

The output HTML document with updated links

Options

Local NameNamespace URIDefaultDescription
source-renamedfalse()

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.