
xml.dtbook-to-zedai.convert.xpl Maven / Gradle / Ivy
The newest version!
Transforms DTBook XML into ZedAI XML.
A fileset containing references to all the DTBook files and any resources they reference (images etc.).
The xml:base is also set with an absolute URI for each file, and is intended to represent the "original file", while the href can change during
conversions to reflect the path and filename of the resource in the output fileset.
One or more DTBook documents to be transformed. In the case of multiple documents, a merge will be performed.
While all resources are referenced in the fileset on the `fileset` output port, the `in-memory`-port can contain pre-loaded documents so that they won't
have to be loaded from disk. This means that the input documents does not have to be stored to disk -
they could have been generated by a preceding conversion, allowing for easy chaining of scripts.
DTBook documents may contain aural CSS (tts:*) attributes and they will be preserved in the output.
A fileset containing references to the DTBook file and any resources it references
(images etc.). For each file that is not stored in memory, the xml:base is set with
an absolute URI pointing to the location on disk where it is stored. This lets the
href reflect the path and filename of the resulting resource without having to store
it. This is useful for chaining conversions.
The ZedAI and MODS metadata documents.
A d:fileset
document that contains a mapping from input files (DTBook)
to output file (ZedAI) and contained id
attributes.
The directory to store the generated files in.
Filename for the generated ZedAI file
Filename for the generated MODS file
Filename for the generated CSS file
Language code of the input document. Only used when DTBook has no xml:lang attribute.
Whether to stop processing and raise an error on validation issues (abort), only report
them (report), or to ignore any validation issues (off). If validation is enabled and
the input DTBook is valid, processing will stop on any invalid intermediary result.
Determines whether to validate the ZedAI output and what to do on validation
errors. When not specified, follows the validation
option.
Whether or not to include any referenced external resources like images and CSS-files in the output.
Whether the input is a valid DTBook.
Whether the input is NIMAS.
HTML-formatted report of the ZedAI validation. Empty if validation is disabled.
Status of the ZedAI validation.
px:assert
pxi:dtbook2005-3-to-zedai
px:dtbook-to-zedai-meta
px:dtbook-validate
px:dtbook-to-mods-meta
px:dtbook-upgrade
px:dtbook-merge
px:zedai-validate
px:fileset-load
px:fileset-create
px:fileset-add-entry
px:fileset-add-entries
px:fileset-join
px:fileset-intersect
px:fileset-copy
px:fileset-filter-in-memory
px:mediatype-detect
px:set-base-uri
px:validate-mods
Upgrade the DTBook document(s) to 2005-3
Validate the DTBook input (after the upgrade)
If there is more than one input DTBook document, merge them into a single
document.
Normalize lang attributes
Convert DTBook 2005-3 to ZedAI
Generate CSS from the visual property attributes in the ZedAI
document
If CSS was generated, add a reference to the ZedAI document
Adding CSS PI
href=""
Strip temporary attributes from the ZedAI
document.
Generate MODS metadata
Generate ZedAI metadata
Insert metadata into the head of ZedAI
Generate UUID for ZedAI identifier
Create a meta element for the MODS file reference and insert it into the head
of the ZedAI
Set new base URI
Validate the final ZedAI output.
Add the ZedAI document to the fileset.
Add all the auxiliary resources to the fileset.
If CSS was generated: Add it to the fileset.
Add the MODS document to the fileset.
This normalizes the fileset
Determine the media type of files