Migrating to release 3.0
DITA-OT 3.0 adds support for Markdown, normalized DITA output, and the alternative
authoring formats proposed for Lightweight DITA. The map-first pre-processing approach provides a modern
alternative to the default preprocess
operation.
Upgrade stylesheets to XSLT 2.0
The Saxon project has announced plans to remove XSLT 1.0 support from the Saxon-HE library that ships with DITA-OT:
โฆweโre dropping XSLT 1.0 backwards compatibility mode from Saxon-HE, and hope to eliminate it entirely in due course.
DITA-OT 3.0 and 3.0.1 included Saxon-HE 9.8.0.5, which rejects XSLT stylesheets that specify
version="1.0"
. Plug-ins with XSLT templates specifying version 1.0 will fail with the message
โXSLT 1.0 compatibility mode is not available in this configuration.โ
To resolve this issue, change any occurrences of <xsl:stylesheet version="1.0">
in custom
plug-in stylesheets to at least <xsl:stylesheet version="2.0">
.
Legacy plug-ins removed
DITA-OT 3.0 no longer includes the following legacy transformation plug-ins in the default distribution:
Plug-in | Source code location |
---|---|
JavaHelp | https://github.com/dita-ot/org.dita.javahelp |
To re-install the JavaHelp plug-in, run the following command:
dita --install=https://github.com/dita-ot/org.dita.javahelp/archive/2.5.zip
Map-first pre-processing
DITA-OT provides a map-first pre-processing option as an alternative to the
default preprocess
operation. The method, which was introduced in DITA-OT 2.5 as an experimental
feature, has since been improved and is ready for use in production scenarios. Map-first pre-processing provides
the same functionality as the default preprocess
, but takes a different
approach.
The internal extension points that run before or after individual steps in the
original preprocess
pipeline (preprocess.*.pre/preprocess.*.post
) are not
available in the newer map-first pre-processing pipeline (preprocess2
), which is used in the PDF
and HTML Help transformations as of DITA-OT 3.0, and in HTML5 and Normalized DITA output as of DITA-OT 4.2.
preprocess
target.New ant.import
extension point
A new extension point has been added to make it easier to add new targets to the Ant processing pipeline.
Earlier versions of DITA-OT use the dita.conductor.target.relative
to call a wrapper file with
a dummy task that imports the Ant project file. This approach is still supported for backwards compatibility,
but the simpler ant.import
approach should be used for all new customizations.