Sfairadora

  • Reference Guide

Document Data Type

There is an object identified with the name document, which corresponds to the entire document. In the following section, the structure of this object is described.
Note: If an Enki language program changes contents of the sections type, view_type, output_template etc., the synchronization of the changes made with the corresponding sections data, view, output etc. occurs at an undefined moment after the change is made. It is necessary to call the function yield in order to enforce the synchronization. After this function is called, it is ensured, that, for instance, the contents of the section data will correspond to the section type etc.
Type
Name
Description
(varying)
data
The structure representing the contents of the document section Data. The concrete items of the structure are defined by the contents of the component type described below.
(varying)
view
The structure representing the contents of the document section View. The concrete items of the structure are defined by the contents of the component view_type described below.
presentation
The sequence representing the contents of the document sections Presentation and Presentation def. Only one data item corresponds to the both sections, as the instance of a presentation definition is not data but a real presentation.
(varying)
output
The structure representing the contents of the document section Output. The concrete items of the structure are defined by the contents of the component output_templates described below.
type
The sequence representing the contents of the document section Data type.
view_type
The sequence representing the contents of the document section View type.
output_templates
The sequence representing the contents of the document section Output templates.
tools
The sequence representing the contents of the document section Tools.
definitions
The structure representing the contents of the document section Definitions.
settings
The structure representing the contents of the document section Settings.
info
The structure representing the contents of the document section Information.
state
The state of the document.