If the available methods can not fully match your own output requirements,
DITA Toolkit supports other ways to customize or enhance the transforms without
having to modify core transforms directly.
The
dita2htmlImpl.xsl file is the main XHTML processor to produce
the output. You can work with the following variables and parameters to
change the way of processing.
If you need to make code changes to
dita2htmlImpl.xsl to change a
variable value, the preferred mechanism is to create an override
transform and place your changed code in the new transform.
Here is an example of an override transform:
-
In the
/xsl/ directory, make a copy of the
dita2xhtml.xsl file
and change the filename of the copy.
-
Add your XSLT changes
within the new file.
Note:
-
Making editing changes to XSLT transforms is not included in this
document; refer to another XSLT reference for guidance.
-
It is not recommended to edit any of the DITA distribution files,
because your modification might be erased by package updates.
-
You are responsible for any change you make to DITA transforms. If
you need help, the
DITA
forum on developerWorks may be a useful resource.