This project is read-only.

Contexts

XBRL context elements contain information about the entity being described, the reporting period and the reporting scenario, all of which are necessary for understanding a business fact captured as an XBRL item.
The sample XBRL document shown below contains three contexts:
<?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 context found in an XBRL fragment is represented in Gepsio by an object of the Context class.
Each of the properties is described below.

Id

The ID of the context, as found on the context element’s ID attribute.

InstantPeriod

A Boolean value specifying whether or not the period of the context is an instant period. The value of the property is true if the context’s period is an instant period and false if the period is not an instant period.

DurationPeriod

A Boolean value specifying whether or not the period of the context is a duration period. The value of the property is true if the context’s period is a duration period and false if the period is not a duration period.

ForeverPeriod

A Boolean value specifying whether or not the period of the context is an unbounded (“forever”) period. The value of the property is true if the context’s period is an unbounded period and false if the period is not an unbounded period.

Identifier

A string specifying the identifier for the given context.

IdentifierScheme

A string specifying the identifier scheme for the given context.

Segment

A .NET XmlNode object referencing the context’s <segment> node, if such a node exists. If the context does not include a <segment> node, then the value of this property is null.
XML found in a <segment> node is beyond the scope of the XBRL specification; it is entirely under the control of the author of the XBRL fragment. Given this, Gepsio does not have enough information to interpret the markup within the <segment> node. The only alternative, therefore, is for Gepsio to provide a reference to the <segment> node, if it exists, allowing application code to interpret any markup as it sees fit.

Scenario

A .NET XmlNode object referencing the context’s <scenario> node, if such a node exists. If the context does not include a <scenario> node, then the value of this property is null.
XML found in a <scenario> node is beyond the scope of the XBRL specification; it is entirely under the control of the author of the XBRL fragment. Given this, Gepsio does not have enough information to interpret the markup within the < scenario> node. The only alternative, therefore, is for Gepsio to provide a reference to the < scenario> node, if it exists, allowing application code to interpret any markup as it sees fit.

Fragment

A reference back to the XbrlFragment object whose XBRL fragment contains the current context.

PeriodStartDate

A .NET DateTime object referencing the start date of the context’s period. This property is only useful if the context specifies a duration period, which is the case if the value of the context object’s DurationPeriod property is true.

PeriodEndDate

A .NET DateTime object referencing the end date of the context’s period. This property is only useful if the context specifies a duration period, which is the case if the value of the context object’s DurationPeriod property is true.

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

Comments

No comments yet.