GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Eleven — SGML Functions (continued)
This section describes low level access to XDX engrams. See XDX HTML Specification for additional information on XDX document and engram structure. The following is an overview of of XDX engrams as found in the specification.
This section covers a series of Legato API functions that provide support to read and write engrams.
XDX data is stored within HTML in the form of “engrams”. Engrams allow information to be embedded within an HTML human readable document to identify or connect parcels of information to the XBRL data. Since HTML can be used to represent facts with an XBRL dataset, engrams can be used to cross identify numeric facts embedded within HTML and also represented as discrete facts within the XBRL instance.
Engrams can range from simple information such as “this identifies a level 1 fact” to complex information such as “the data in this row is connected to XBRL element xyz, is indented at this level and has a negated role”.
Engram characteristics:
An engram Identifies a Group of Textual Data — It will start or stop the group of data belonging to a particular fact or element. In many cases the scope of the data is defined by the type of XDX code.
An engram can Contain One or More Parameters — Depending on the XDX Code, an engram could have more than one parameter and may contain more than one code.
An engram is Self Checking — Engrams can contain an optional check code to verify integrity.
An engram is Unique — Engrams must be unique to both be able to identify a specific piece of information and not violate any name space rules.
Engrams can be Loosely Nested — Engrams can contain other engrams and may continue to apply to a region of text until revoked or replaced by a new engram of the same level.
11.18.3 XDX Engram Format
Engrams are principally stored in the HTML ID attribute as well as the SUMMARY. They can also be stored within the NAME attribute of the A element (anchor). The ID attribute has the added advantage of being available on nearly all HTML elements as specified by HTML 4.0 (RFC xxxx). The <A NAME> combination is a convenient way to transport document information to non-HTML platforms such as Microsoft Word in the form of “bookmarks”.
Engram Format
xdx_ffc[_param]
Where:
xdx | Designates ID as an XDX engram. | |
ff | Defines the engram type | |
c | Is a check code to verify the integrity of the overall engram. | |
param | Is any associated data. Engrams can have up to twenty (20) parameters. |
XDX engrams are embedded in the HTML code at two basic levels. The first is via the ID attribute and the second is using HTML comments inside of a “field” code.
Example of an engram in an HTML ID:
<TR ID="xdx_40C_ProfitLoss_01_pn6n6" STYLE="vertical-align: bottom">
Fields define a method of structuring HTML comments in a manner similar to W3C CSS data. Information is in the form “property: value; property; value”. The ‘set’ field is employed in these example since the field structure can be used by a number systems exploiting comments to carry data:
<!-- Field: Set; Name: xdx; ID: xdx_05__EntityCentralIndexKey_0000990681 -->
Engram structure is exactly the same and in fact is specified by the ID property rather than the HTML ID attribute.
Creating Engram Components
Reading Engram Components
Support Functions
XDX Engram Map
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are 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 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.