Units

XBRL unit elements specify the units in which a fact has been measured. Some examples of simple units of measure are EUR (Euros), meters, kilograms and FTE (Full Time Equivalents). Some examples of complex units of measures are Earnings per Share and Square Feet.
The sample XBRL document shown below contains one unit:
<?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 unit found in an XBRL fragment is represented in Gepsio by an object of the Unit class.
Gepsio correctly translates the string-based ISO 4217 information specified in the unit into .NET-friendly culture and region objects. ISO 4217 is the international standard describing three-letter codes to define the names of currencies established by the International Organization for Standardization (ISO). The ISO 4217 code list is the established norm in banking and business all over the world for defining different currencies, and in many countries the codes for the more common currencies are so well known publicly, that exchange rates published in newspapers or posted in banks use only these to define the different currencies, instead of translated currency names or ambiguous currency symbols.
Each of the properties is described below.

Id

A string representing the ID of the unit, as defined by the “id” attribute on the unit’s tag.

MeasureQualifiedNames

A list of QualifiedName objects. There is one QualifiedName object in the list for every measure defined in the unit.
The list is implemented as an object of the standard .NET System.Collections.Generic.List class, and you can apply all of the operations available to objects of the System.Collections.Generic.List class to this list.
See the section on page 31 called “Qualified Names” for more information on Gepsio QualifiedName objects.

RegionInformation

A reference to a .NET RegionInfo object populated with information from the unit’s ISO 4217 code.

CultureInformation

A reference to a .NET CultureInfo object populated with information from the unit’s ISO 4217 code.

Ratio

A Boolean value specifying whether or not the unit specifies a ratio. The value is true if the unit is a ratio, and false if the unit is not a ratio. Units with ratios are defined through the use of an XBRL <divide> element in the unit definition.

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

Comments

No comments yet.