This sample compares two DITA bookmap files
in2.bookmap, it does not
compare the referenced topics. Because of this, the topic files are not included in the sample. Please read the
content of the DITA markup result (
results/dita-markup.bookmap) as it is designed to illustrate
several of our DITA comparison product's features.
The sample uses either .NET or Java versions of DITA Compare, according to the version downloaded, samples for both platforms are covered here.
The result of this comparison depends on the selected output format, as discussed in the Output Formats Section of the Reference, the formats used in this sample are summarised in the table below.
|dita-markup||Mark changes using DITA's rev and status attributes.|
|oxygen-tcs||Mark changes using the oXygen tracked changes format.|
The sample scripts (batch-file or ant) also set two parameters, to preserve the lexical formatting of the source document.
The sample comparison can be run via an build script using the following commands.
|Run all four comparisons.|
|Run the DITA Markup comparison.|
|Run the oXygen tracked changes comparison.|
|Remove the generate output.|
The output of these commands are put into the
The sample can be run directly by issuing the following command
java -jar ../../deltaxml-dita.jar compare mapfile in1.bookmap in2.bookmap out.bookmap output-format=dita-markupwhere
dita-markupformat enumeration can be replaced by one of the tracked changes format enumerations.
rundemo.bat batch file either by entering
rundemo from the command-line or by
double-clicking on this file from Windows Explorer. This script runs the same comparison 4 times, once for each
output format. The output destination is a freshly created results directory.
The sample comparison can also be run from the command line, using the following:
..\..\bin\deltaxml-dita.exe compare mapfile in1.bookmap in2.bookmap out.bookmap output-format=dita-markup