This project is read-only.

Facts

XBRL fact elements contain a piece of factual data to be supported by applications consuming the XBRL fragment. Facts are following:
  • An element defined by <element> data in an XBRL schema
  • A reference to a context defined elsewhere in the XBRL fragment
  • A reference to a unit of measure defined elsewhere in the XBRL fragment
The sample XBRL document shown below contains three facts:
<?xml version="1.0" encoding="UTF-8"?>
 
<xbrli:xbrl
xmlns:ifrs-gp="http://xbrl.iasb.org/int/fr/ifrs/gp/2005-05-15"
xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
xmlns:xbrli="http://www.xbrl.org/2003/instance"
xmlns:xbrll="http://www.xbrl.org/2003/linkbase"
xmlns:xlink="http://www.w3.org/1999/xlink">
 
    <xbrll:schemaRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"
    xlink:type="simple"/>
    <ifrs-gp:OtherOperatingIncomeTotalFinancialInstitutions contextRef="J2004" decimals="0" unitRef="EUR">38679000000</ifrs-gp:OtherOperatingIncomeTotalFinancialInstitutions>
    <ifrs-gp:OtherAdministrativeExpenses contextRef="J2004" decimals="0" unitRef="EUR">35996000000</ifrs-gp:OtherAdministrativeExpenses>
    <ifrs-gp:OtherOperatingExpenses contextRef="J2004" decimals="0" unitRef="EUR">870000000</ifrs-gp:OtherOperatingExpenses>
    ...
    <ifrs-gp:OtherOperatingIncomeTotalByNature contextRef="J2004" decimals="0" unitRef="EUR">10430000000</ifrs-gp:OtherOperatingIncomeTotalByNature>
    <xbrli:context id="BJ2004">
        <xbrli:entity>
            <xbrli:identifier scheme="www.iqinfo.com/xbrl">ACME</xbrli:identifier>
        </xbrli:entity>
        <xbrli:period>
            <xbrli:instant>2004-01-01</xbrli:instant>
        </xbrli:period>
    </xbrli:context>
    <xbrli:context id="EJ2004">
        <xbrli:entity>
            <xbrli:identifier scheme="www.iqinfo.com/xbrl">ACME</xbrli:identifier>
        </xbrli:entity>
        <xbrli:period>
            <xbrli:instant>2004-12-31</xbrli:instant>
        </xbrli:period>
    </xbrli:context>
    <xbrli:context id="J2004">
        <xbrli:entity>
            <xbrli:identifier scheme="www.iqinfo.com/xbrl">ACME</xbrli:identifier>
        </xbrli:entity>
        <xbrli:period>
            <xbrli:startDate>2004-01-01</xbrli:startDate>
            <xbrli:endDate>2004-12-31</xbrli:endDate>
        </xbrli:period>
    </xbrli:context>
    <xbrli:unit id="EUR">
        <xbrli:measure>iso4217:EUR</xbrli:measure>
    </xbrli:unit>
</xbrli:xbrl>

Each fact found in an XBRL fragment is represented in Gepsio by an object of the Fact class.
The class’ properties are listed below.

ContextRef

A reference to a Gepsio Context object describing the context information for the fact.
See the section on page 13 called “Complex Types” for more information on Gepsio Context objects.

ContextRefName

A string describing the name of the context for the fact.

UnitRef

A reference to a Gepsio Unit object describing the unit information for the fact.
See the section on page 19 called “Units” for more information on Gepsio Unit objects.

UnitRefName

A string describing the name of the unit for the fact.

Precision

An integer containing the value of the fact’s “precision” attribute, if it exists. If the attribute was not found in the fact, then the precision will be reported as 0. The object’s PrecisionSpecified property will report on whether or not the attribute was actually used on the fact.
If the precision is specified with a value of “INF”, then object’s PrecisionSpecified property will evaluate to true and the object’s precision will be reported as 0.

Decimals

An integer containing the value of the fact’s “decimals” attribute, if it exists. If the attribute was not found in the fact, then the decimals will be reported as 0. The object’s DecimalsSpecified property will report on whether or not the attribute was actually used on the fact.
If the decimal precision is specified with a value of “INF”, then object’s DecimalsSpecified property will evaluate to true and the object’s decimal precision will be reported as 0.

PrecisionSpecified

A Boolean describing the fact’s use of a “precision” attribute. The value will be true if the fact specified a precision value and false otherwise.

DecimalsSpecified

A Boolean describing the fact’s use of a “decimals” attribute. The value will be true if the fact specified a precision value and false otherwise.

InfinitePrecision

A Boolean describing the fact’s use of a “precision” attribute. The value will be true if the fact was specified with infinite precision and false otherwise.

InfiniteDecimals

A Boolean describing the fact’s use of a “decimals” attribute. The value will be true if the fact was specified with infinite decimals value and false otherwise.

PrecisionInferred

A Boolean describing whether or not the precision of the fact as reported by the Precision property was inferred. The value will be true if the fact’s precision was inferred and false otherwise. If PrecisionInferred is false, then an explicit precision was specified for the fact. If PrecisionInferred is true, then no an explicit precision was specified for the fact and a decimals attribute was used instead.

Value

A string containing the value of the fact.

RoundedValue

A double specifying the rounded value for the fact. Rounding is accomplished with respect to the “deicmals” and “precision” values specified in the XBRL fragment for the fact.

Namespace

A string representing the namespace URI for the fact.

SchemaElement

A reference to a Gepsio Element object describing the fact’s definition. The element information is read from the XBRL fragment’s associated schema and is stored in an Element object.

Name

A string containing the local name (that is, the fact’s name without the namespace prefix) of the fact.

Id

A string containing the value of the fact’s “id” attribute, if it exists. If the attribute was not found in the fact, then the string will be empty.

NilSpecified

A Boolean describing the fact’s use of a “nil” attribute whose value is “true”. The value will be true if the fact specified a “nil” attribute with a value of “true” and false otherwise. If the fact includes a “nil” attribute, but its value is anything other than “true”, then Gepsio will consider the fact as not specifying a nil value and, in those cases, the value of this property will be false.

Type

A reference to a Gepsio AnyType object describing the fact’s data type.
The Gepsio AnyType class is an abstract class and serves as the base type for all simple types and complex types. The object in the Type property will be of a class derived from AnyType.

Last edited Jan 31, 2011 at 1:20 AM by JeffreyFerguson, version 1

Comments

No comments yet.