
doc.transformers.us_rfbd_dtbookMigrator.html Maven / Gradle / Ivy
The newest version!
Transformer documentation: us_rfbd_dtbookMigrator
Transformer documentation: us_rfbd_dtbookMigrator
Transformer Purpose
The purpose of this transformer is to migrate a DTBook document from version 2005-1 of the standard to version 2005-2.
Input Requirements
A valid DTBook document.
Output
On success
A valid DTBook document.
On error
On error, this transformer will throw an exception and abort execution.
Configuration/Customization
Parameters (tdf)
- xml
- The input DTBook 2005-1 document
- out
- The output DTBook 2005-2 document
- version
- An enum to select desired output version. Defaults to LATEST.
Extended configurability
[None]
Further development
To add support for a new DTBook version, perform the following steps:
- Create the XSLT and add it to
org.daisy.util.xml.xslt.stylesheets.dtbook
.
This XSLT should include logic to go from previous to current version only.
- Register the new XSLT in
org.daisy.util.xml.xslt.stylesheets.catalog.xml
- Update the
us_rfbd_dtbookMigrator.DtbookVersion
enum.
- Update the
us_rfbd_dtbookMigrator.DtbookVersionManager
class.
Dependencies
Saxon XSLT processor.
Author
James Pritchett
Licensing
LGPL
© 2015 - 2025 Weber Informatics LLC | Privacy Policy