xml.xproc.step.create-ncc.xpl Maven / Gradle / Ivy
The newest version!
Create NCC file for a given DAISY 2.02 fileset.
The DAISY 2.02 fileset.
The package document of the original EPUB 3 from which the DAISY 2.02 was generated.
A fileset XML document listing all the pagebreak elements as d:anchor elements.
A fileset XML document listing all the noteref elements as d:anchor elements.
The resulting DAISY 2.02 fileset that includes the NCC and possibly additional or
improved SMIL files.
px:add-ids
px:set-base-uri
px:fileset-load
px:fileset-create
px:fileset-add-entry
px:fileset-add-entries
px:fileset-join
px:fileset-intersect
px:fileset-update
px:fileset-filter-in-memory
px:opf-spine-to-fileset
px:html-add-ids
px:html-outline
px:opf-to-ncc-metadata
Normalize base URI of OPF
Load content documents in spine order.
Add missing IDs to heading elements. Page number elements already have an ID thanks to
identify-pagebreaks.xsl
Augment SMIL files with references to heading elements.
Load SMIL files
Get the HTML file(s) that corresponds with this SMIL.
Make sure pars have an id attribute (needed for augment-smils.xsl and
create-linkbacks.xsl and also later by rearrange-notes.xsl)
Augment the SMIL.
Add linkbacks from HTML to SMIL.
Create new SMIL file with references to heading elements for every content document without
media-overlay.
Make sure pars have an id attribute (needed for create-linkbacks.xsl)
Add linkbacks from HTML to SMIL.
Create HTML (that will later become the NCC) with references to all heading, pagenum and
noteref elements.
Create outline
Convert outline to NCC format and add page numbers.
Make anchors in NCC point to SMILs and remove noteref links that are not present in SMIL.
Add NCC head and lang attribute based on package doc and NCC body
Fileset of all updated HTML
Add new SMILs and update with augmented SMILs
Update HTML
Add generated NCC