This sample compares two DITA maps,
doc2/maps/main.ditamap, using all three of the available map result structures: the 'topic set', the 'map-pair' and the 'unified-map'.
An alternative form of the 'map pair' and 'unified map' comparisons is provided, where the output format is set to oXygen tracked changes. This is done in order to illustrate that whether a topic contains reportable change is dependant on the output format. For example, the DITA markup output format cannot represent insertion, deletion or change within a comment, whereas the oXygen track changes output format can. Therefore, we have added a comment to the Aligning Topics topic, which appears in both results, but is only marked as changed in the DITA map file, when the tracked change output format is selected.
The sample script (Ant or batch file - depending on download) includes examples with result structures set to
unified-map. Different 'result origin' settings are also used.
Output Structure and Destination
The output of these commands are put into the
unified-map-B directories, which contain a
result-alias.ditamap file whose content references the actual results, but can be used as a result in its own right. Note that in the case of the map pair result, the alias combines the two main result maps into a single document.
Running the sample
The resources should be checked-out, cloned or downloaded and unzipped into the samples directory of the DITA Compare release. They should be located such that they are two levels below the top level release directory, for example