Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter ElevenSGML Functions (continued)

XBRLTransformData Function

Overview

The XBRLTransformData function allows a string to be validated and transformed using a specified iXBRL transformation.

Syntax/Parameters

Syntax

string = XBRLTransformData ( [handle hXM], string type | PVALUE type, string data );

Parameters

hXM

An optional handle to an XBRL Object.

type

A string or PVALUE specifying the Transform QName name to validate/translate against.

data

A string containing the data to validate/translate.

Return Value

Returns a string containing the transform data or an empty string on failure. Use the GetLastError function to retrieve the same formatted error code and GetLastErrorMessage to retrieve narrative on the error.

Remarks

Transforms allow formatted HTML data to be transformed into standard XBRL data constructs.

If an XBRL Model Object is not provided, the model is reinitialized. and the Data Type table reloaded on every call. Use the XBRLCreateObject to create an empty object for repeat calls.

When string is used to defined the transformation type (or name), the default prefix is “ixt:”. If the transform is not found, the prefix is adjusted with “ixt:”. This operation is performed even if a taxonomy is loaded with a different namespace prefix. 

Related Functions

Platform Support

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

Legato IDE, Legato Basic