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

Merge multiple HTML documents into a single document.

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

Input Ports

Port Description
source primary sequence

Output Ports

Port Description
result primary

Before merging, the sectioning hierarchy of each document is normalized. A sequence is then created of all the body elements. The merging process then consists of (recursively) joining consecutive sections whenever they were originally in separate documents and the second section has no associated heading. If after this step there are multiple body elements, they are renamed to section and wrapped in a body.

The first document's head element and xml:lang and lang attributes are used, those of the other documents are discarded.

mapping

d:fileset document that contains a mapping from input to output files and contained id attributes.

Options

Local Name Namespace URI Default Description
output-base-uri required

The base URI of the result document.