Integrating the File Comparison Tool with a CMS
Oxygen XML Web Author provides a file comparison tool that is offered as an API for CMS integrations.
The File Comparison tool is a useful feature that can be used to show differences between the current document and either its latest version from the repository or another document.
Integration Approach
To launch the Web Author Merge tool, it must be started with the following URL parameters:
- url
-
The OXY-URL of one of the files to be compared. It will be loaded in the left side of the comparison tool.
- diffUrl
-
The OXY-URL of the other file to be compared. It will be loaded in the right-side document from the comparison tool.
- diffBaseUrl
-
The OXY-URL of the base file used for the 3-way comparison. It is usually a file version where the two versions diverged (the common ancestor). If this parameter is not specified, the tool will perform a 2-way diff and will not be able to detect conflicts.
Keep in mind that the above parameters have to be set as URL parameters and note that there are others that can be used to configure various aspects of the editor.