Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter ElevenSGML Functions (continued)

HTMLSetDTD Function

Overview

The HTMLSetDTD function sets the DTD for the writer and if a header is added, sets the DTD for the resulting document.

Syntax/Parameters

Syntax

int = HTMLSetDTD ( handle hObject, [dword type] );

Parameters

hObject

A handle to an HTML Writer Object.

type

A dword (or int) specifying the DTD code. The default is DTD_DEFAULT_HTML_50 or it is referenced from the source data. See SGMLSetHTMLDTD for a list of available DTDs.

Return Value

Returns an int as ERROR_NONE (0) or a formatted error code on failure. Use the GetLastError function to retrieve error information.

Remarks

This function should only be called once. If a DTD is not set, when the HTML header is written using the HTMLAddHead function, it will not contain a DTD. (Note that the DEFAULT designator simply means use the internal default DTD definition.) 

When using the XML flag, the character encoding, and by default the character set, is set to UTF-8 and UNICODE. Both EDGAR modes do not set a DTD on the document.

Related Functions

Platform Support

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

Legato IDE, Legato Basic