GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Eleven — SGML Functions (continued)
11.20.6 XBRL Model — Loading Functions
These functions support the loading of instance and/or taxonomy information to an XBRL Model or creating a an empty model for later export. A number of functions will return an XBRL Model Object handle for use in subsequent operations.
Loading an Instance
For an instance, the normal order of operations is:
– Load the instance and get a handle (XBRLLoadInstance)
– Optionally add one or more instance sections (XBRLAddInstance)
– Load the taxonomy (XBRLLoadTaxonomy)
– Post process which links the the components and checks for structural errors (XBRLPostProcess)
Loading will add certain XML and XBRL errors to the Log Object, if provided.
Loading a Taxonomy
In some cases, the programmer may want to simply load a taxonomy or schema for reference. In this case, the normal order of operations is:
– Load the taxonomy (XBRLLoadTaxonomy)
– Post process which links the the components and checks for structural errors (XBRLPostProcess)
Loading will add certain XML and XBRL errors to the Log Object, if provided.
Creating Data
[currently partly available and in beta] To create either instance data and or taxonomy data, the normal order of operations is:
– Create an XBRL Model (XBRLCreateObject)
– Import any schemas or taxonomies that will be relied upon (XBRLImportTaxonomy)
– Add taxonomy data using add functions:
– Add Data Types (XBRLAddDataType)
– Add Concepts (XBRLAddConcept)
– Add Definitions (XBRLAddDefintion)
– Add Calculations (XBRLAddCalculation)
– Add Labels (XBRLAddLabel)
– Add Presentations (XBRLAddPresentation)
– Add References (XBRLAddReference)
– Optionally add instance information using the instance add functions:
– Add Contexts (XBRLAddContext)
– Add Units (XBRLAddUnit)
– Add Facts (XBRLAddFact)
– Add Footnotes (XBRLAddFootnote)
– Post process which links the the components and checks for structural errors (XBRLPostProcess)
– Assemble instance and/or taxonomy elements by exporting XML segments
(XBRLExportXMLSegment)
The order of assembly is import in that if, for example, a fact must reference a context, it must have been previously defined. XML Assemble requires successive calls to XBRLExportXMLSegment to retrieve the required items.
Functions
Platform Support
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.