|
GoFiler Legato Script Reference
Legato v 1.6l
Application v 6.6b
|
Chapter Eleven — SGML Functions (continued)
11.3.10 DTD and Schema
The DTD or Document Type Definition defines the elements, attributes, values and structure of SGML and HTML.
XML can use a DTD but normally uses a schema (XSD). The DTD Object consists of the following components:

The DTD Manager contains the logic to load well-known DTD information, search for and enumerate terms
using tokens, validation (as attached to the well-known DTD) and logic to manage namespaces and DOCTYPE information. Not
shown and as part of the DTD Token Lists are the CSS Properties List and named character entities. Since CSS properties,
particularly inline CSS styles, are treated like SGML attributes, CSS properties are processed like attributes.
Namespaces are counted in two areas: as tokens for prefix names which are attached to elements and
attributes and as as a list of prefixes and namespace URLs.
A DTD is attached to an SGML Object. If a DTD is not specified, the default is HTML 5. CSS, while not defined
within a DTD, is part of the DTD functions. The following table lists the currently built in DTDs:
| |
Definition |
|
Bitwise |
|
Description |
|
| |
DTD Designator |
|
|
|
|
|
| |
|
DTD_CUSTOM |
|
0x00000000 |
|
No Specific DTD Set or Custom |
|
| |
|
DTD_DEFAULT_EDGAR_HYBRID |
|
0x00000001 |
|
Default EDGAR Hybrid HTML 3.2 |
|
| |
|
DTD_DEFAULT_EDGAR_XHTML |
|
0x00000002 |
|
Default XHTML/XBRL EDGAR 1.0/3.2 |
|
| |
|
DTD_DEFAULT_EDGAR_IXBRL |
|
0x00000007 |
|
Default XHTML/iXBRL EDGAR 1.0/4.x |
|
| |
|
DTD_DEFAULT_HTML_20 |
|
0x00000010 |
|
Default HTML 2.x |
|
| |
|
DTD_DEFAULT_HTML_32 |
|
0x00000003 |
|
Default HTML 3.2 |
|
| |
|
DTD_DEFAULT_HTML_40_TRANSITIONAL |
|
0x00000004 |
|
Default HTML 4.01 Transitional |
|
| |
|
DTD_DEFAULT_HTML_40_STRICT |
|
0x00000005 |
|
Default HTML 4.01 Strict |
|
| |
|
DTD_DEFAULT_HTML_40_FRAMESET |
|
0x00000020 |
|
Default HTML 4.01 Frameset |
|
| |
|
DTD_DEFAULT_HTML_50 |
|
0x00000030 |
|
Default HTML 5.0 |
|
| |
|
DTD_DEFAULT_XHTML_10_TRANSITIONAL |
|
0x00000006 |
|
Default XHTML 1.0 Transitional |
|
| |
|
DTD_DEFAULT_XHTML_10_STRICT |
|
0x00000050 |
|
Default XHTML 1.0 Strict |
|
| |
|
DTD_DEFAULT_XHTML_10_FRAMESET |
|
0x00000060 |
|
Default XHTML 1.0 Frameset |
|
| |
|
DTD_DEFAULT_XHTML_11 |
|
0x00000080 |
|
Default XHTML 1.1 (strict) |
|
| |
|
DTD_DEFAULT_XHTML_11_BASIC |
|
0x00000090 |
|
Default XHTML 1.1 Basic |
|
| |
|
DTD_DEFAULT_XSD |
|
0x000000A0 |
|
Default XSD |
|
| |
Flags |
|
|
|
|
|
| |
|
DTD_XHTML_AS_XML |
|
0x00000100 |
|
XHTML as XML (Wrapper) |
|
Standard token values are located in the Legato SDK. Programmers should not hard code token values.
These functions allow translation of string names to DTD tokens. Version 1 of Legato SGML DTD does not
allow for custom DTD specification.
DTD Specific Functions:
DTDCreateObject — Creates a DTD object.
DTDEnumerateAttributes — Enumerates a string table of attribute tokens.
DTDEnumerateElements — Enumerates a string table of element tokens.
DTDEnumerateNamespaces — Enumerates a string table of namespace tokens.
DTDEnumerateProperties — Enumerates a string table of CSS property tokens.
DTDGetCSSPropertyCase — Returns the tag case mode for CSS properties.
DTDGetNamespaces — Returns a list of specified namespace URLs and prefix key names.
DTDGetObject — Returns the DTD object associated with a specific with another object.
DTDGetProperties — Returns the properties associated with a specified DTD.
DTDGetTagCase — Returns the tag case mode for elements and attributes.
DTDParseDocType — Parses the specified object and returns doc type, schema and other meta data.
DTDParseTagCase — Parses the specified object and returns the discovered tag case.
DTD Functions Accessed Via SGML Object:
SGMLAttributeToString — Converts the attribute token to a string.
SGMLElementToString — Converts the element token to a string.
SGMLNamespaceToString — Converts the namespace token to a string.
SGMLPropertyToString — Converts a CSS property token to a string.
SGMLStringToAttribute — Converts the string version of an attribute name to a token value.
SGMLStringToElement — Converts the string version of an element name to a token value.
SGMLStringToNamespace — Converts the string version of a namespace to a token value.
SGMLStringToProperty — Converts the string version of a CSS property name to a token value.
Page revised 2026-11-16
© 2012-2026 Novaworks, LLC. All rights reserved worldwide.
Unauthorized use, duplication or transmission is prohibited by law. Portions of the software are protected by US Patents 10,095,672,
10,706,221 and 11,210,456. Novaworks, GoFiler™ and Legato™ are registered trademarks of Novaworks, LLC. EDGAR® is a
federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the
U.S. Securities and Exchange Commission. All other trademarks are the property of their respective owners. Use of the features
specified in this language are subject to terms, conditions and limitations of the Software License Agreement.