XML technologies / DITA / Using familiar technologies / Java

(Excerpt from “DITA – Der neue Standard für Technische Dokumentation” by Johannes Hentrich)

All programs used by the DITA Open Toolkit are written in Java, including the XSLT processor Xalan and the XSL-FO processor Apache FOP.

Besides these programs, which can also be used outside the DITA Open Toolkit, a Java library was developed specifically for the toolkit to perform important functions during XSLT stylesheet transformations. This Java library is located in the toolkit’s lib directory and is called dost.jar.

To get an idea of the functions the Java library can perform, it is useful to examine its help file. This can be invoked with

 java -jar lib/dost.jar -h 

. The following excerpt gives an overview of the functionality of the Java library dost.jar:

/i:

Input file path and name

/transtype:

Transformation type

Optionen:

/basedir:

Working directory.

/ditadir:

Toolkit home directory; default is "temp".

/outdir:

Output directory.

/tempdir:

Temporary directory.

/logdir:

Log directory.

/ditaext:

File extension used in the temporary directory. The default is ".xml".

/filter:

Name of the file containing filtering and flagging information.

/draft:

Specifies draft output.

/artlbl:

Specifies whether artwork graphics are used.

/csspath:

Path to the CSS reference.

/css:

Path to the user’s customized CSS file.

/cssroot:

Root directory for the user’s customized CSS file.

/outext:

XHTML output extension; default is ".html".

/foimgext:

PDF graphics extension; default is ".jpg".

/javahelptoc:

Base file for the JavaHelp table of contents.

Defaults to the DITA map name.

/javahelpmap:

JavaHelp map base file, defaulting to the DITA Map name.

/eclipsehelp-toc:

Eclipse Help table-of-contents base file, defaulting to the DITA Map name.

/eclipse-contenttoc:

Defines the table-of-contents name
for Eclipse Content Providers in EclipseContent output.
Defaults to the DITA Map name.

/xhtmltoc:

Base table-of-contents file for XHTML output.

/validate:

Specifies whether XML and map files are validated.

When a new version of the DITA Open Toolkit is released, work focuses particularly on the Java library dost.jar as well as the stylesheets. SourceFORGE.NET, where the DITA Open Toolkit can be downloaded, also provides a bug tracker where current errors in the DITA Open Toolkit and the Java library dost.jar can be reported.

  

 

 

 

back to top