Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

CompareHTMLCreateMerged Function

Overview

The CompareHTMLCreateMerged function compares a base HTML file to a revised HTML file and generates another HTML file that shows the revisions.

Syntax/Parameters

Syntax

int = CompareHTMLCreateMerged ( string base, string revised, string result,
                           [boolean casing], [boolean spaces], [boolean styles],
                           [boolean entities], [boolean coding] );

Parameters

base

A string to a qualified filename of the base file.

revised

A string to a qualified filename of the revised file.

result

A string to a qualified filename of the resulting file.

casing

A boolean indicating whether the result should show changes in letter casing. Default value is false.

spaces

A boolean indicating whether the result should show changes in white spacing. Default value is false.

styles

A boolean indicating whether the result should show changes in styling. Default value is false.

entities

A boolean indicating whether the result should show changes in character entity values. Default value is false.

coding

A boolean indicating whether the result should show changes in HTML tag coding. Default value is false.

Return Value

An int as a ERROR_NONE (0) for no error or a formatted error code.

Remarks

The resulting file is an HTML file that uses <INS> and <DEL> tags to show changes made from the base in the revised document. If the file has no changes there will be no <INS> or <DEL> tags. Replaced text is shown as sequential <DEL> and <INS> tags.

The styles option is not compatible with the coding option. If both are set the coding option will take precedence. The Compare HTML function will translate the HTML into a simplified text and compare the results. This compares the content of the HTML and not the formatting of the code. If code is to be compared instead the coding option should be used.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE