Skip to content

No Support For Linkbases Defined Directly in Schema AppInfo #61

Description

@JeffFerguson

Gepsio supports the loading and processing of linkbase documents encoded as <linkbaseRef> elements within a schema <appinfo> element, as in

<schema targetNamespace="http://example.com/xbrl/taxonomy/SummationItem" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrll="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink">
    <annotation>
        <appinfo>
            <link:roleType roleURI="http://www.example.com/mycalculation" id="myCalcRole">
                <link:definition>Definition for calculation Link</link:definition>
                <link:usedOn>link:calculationLink</link:usedOn>
            </link:roleType>
        <xbrll:linkbaseRef xlink:type="simple" xlink:actuate="onRequest" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="SummationItem_calculation.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef"/>
    </appinfo>

However, linkbase directives are not supported if they are defined directly in the schema <appinfo> element, without an intermediary <linkbaseRef> element, as found, for example, in JeffFerguson.Gepsio.Test/XBRL-CONF-2014-12-10/Common/300-instance/SummationItemDefaultContributor.xsd:

<appinfo>
    <link:roleType roleURI="http://www.example.com/mycalculation" id="myCalcRole">
        <link:definition>Definition for calculation Link </link:definition>
        <link:usedOn>link:calculationLink</link:usedOn>
    </link:roleType>
    <linkbase xmlns="http://www.xbrl.org/2003/linkbase">
        <roleRef xlink:type="simple" xlink:href="#myCalcRole" roleURI="http://www.example.com/mycalculation"/>
        <calculationLink xlink:type="extended" xlink:role="http://www.example.com/mycalculation">
            <loc xlink:type="locator" xlink:href="#Asset" xlink:label="labelAsset"/>
            <loc xlink:type="locator" xlink:href="#CurrentAsset" xlink:label="labelCurrentAsset"/>
            <loc xlink:type="locator" xlink:href="#FixedAsset" xlink:label="labelFixedAsset"/>
            <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="labelAsset" xlink:to="labelCurrentAsset" weight="1.0"/>
            <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="labelAsset" xlink:to="labelFixedAsset" weight="1.0"/>
        </calculationLink>
    </linkbase>
</appinfo>

Gepsio must support both forms of linkbase definitions.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions