Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter ElevenSGML Functions (continued)

DTDEnumerateElements Function

Overview

The DTDEnumerateElements function returns a table of element names and properties associated with a specified DTD.

Syntax/Parameters

Syntax

string[][] = DTDEnumerateElements ( handle hDTD );

Parameters

hDTD

A handle to a DTD Object or an object employing a DTD.

Return Value

A string table containing the element names, token values and flags or an empty array on error. Use the GetLastError to retrieve a formatted error code.

Remarks

The table will contain a list of element items with the following column key names:

  Key Name   Description  
  Element   Element name. If HTML, the value will be case-insensitive and is conventionally upper case. If XML, the value is case-sensitive.  
  ElementToken   A string in hexadecimal form containing the token value.  
  NS   If the element is associated with a namespace, this field will contain the namespace prefix.  
  NSToken   A string in hexadecimal form containing the namespace token value. If there is no associated namespace, the value will be zero.  
  Context   Context information.  
  Flags   A string in hexadecimal form containing bitwise flags.  

 

The Flags parameter has the following standard meanings:

  Definition   Value   Description  
             
  Origin:          
    W3C_ELEMENT   0x00000001   Element is of W3C origin.  
    W3C_HTML_3   0x00000001   HTML 3.x specification (or earlier).  
    W3C_HTML_4   0x00000003   HTML 4.x specification.  
    W3C_HTML_5   0x00000005   HTML 5.x specification.  
  Element Open/Close:      
    EOC_CLOSE_MASK    0x00000030   Close Mask   
    EOC_MUST_CLOSE    0x00000000   Must Close (default)  
    EOC_OPTIONAL_CLOSE    0x00000010   Optional Close   
    EOC_NO_CLOSE    0x00000020   Element Does not Have Close   
  Element Child Content:      
    ECC_REQUIRED_CONTENT    0x00000100   Content is Required (not <TR />  

 

Related Functions

Platform Support

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

Legato IDE, Legato Basic