XBRL 验证错误:xbrldie:PrimaryItemDimensionallyInvalidError

问题描述 投票:0回答:1

根据分类法,我尝试在下表结构中给出答案:

enter image description here

根据我目前的理解(这可能是错误的,因为我对xbrl相对较新)我构建了XBRL实例:

    <xbrli:context id="y2024_DefinitionOfTimeHorizon_ShortTermMember">
        <xbrli:entity>
            <xbrli:identifier scheme="y2024">2024</xbrli:identifier>
        </xbrli:entity>
        <xbrli:period>
            <xbrli:startDate>2024-01-01</xbrli:startDate>
            <xbrli:endDate>2024-12-31</xbrli:endDate>
        </xbrli:period>
        <xbrli:scenario>
            <xbrldi:explicitMember dimension="ifrs-sds:TimeHorizonAxis">
                ifrs-sds:ShortTermMember
            </xbrldi:explicitMember>
        </xbrli:scenario>
    </xbrli:context>

    <ifrs-sds:DefinitionOfTimeHorizonExplanatory contextRef="y2024_DefinitionOfTimeHorizon_ShortTermMember">
        Your explanatory text here for short term member...
    </ifrs-sds:DefinitionOfTimeHorizonExplanatory>

但是在验证过程中失败并出现错误:

[xbrldie:PrimaryItemDimensionallyInvalidError] Fact ifrs-sds:DefinitionOfTimeHorizonExplanatory context y2024_DefinitionOfTimeHorizon dimensionally not valid

如果我删除 xbrli:scenario 标签及其子验证通过。但是,如果我不能使用它们,我如何为每个成员给出不同的时间范围定义?我在这里做错了什么?


当前 xbrl 实例:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<xbrli:xbrl
    xmlns="http://www.xbrl.org/2003/instance"
    xmlns:xbrli="http://www.xbrl.org/2003/instance"
    xmlns:xbrldi="http://www.xbrl.org/2006/xbrldi"
    xmlns:link="http://www.xbrl.org/2003/linkbase"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
    xmlns:ifrs-sds="https://xbrl.ifrs.org/taxonomy/2024-04-26/ifrs-sds"
    xmlns:ifrs-ibg="https://xbrl.ifrs.org/taxonomy/2024-04-26/ifrs-ibg"
    xmlns:dtr-2022="http://www.example.org/dtr-2022"
>
    <link:schemaRef
        xlink:type="simple"
        xlink:href="https://ifrs-taxonomy-ya2zds.s3.eu-central-1.amazonaws.com/ifrs_sds_2024-04-26.xsd"
    />
    <xbrli:context id="y2024_DefinitionOfTimeHorizon_ShortTermMember">
        <xbrli:entity>
            <xbrli:identifier scheme="y2024">y2024</xbrli:identifier>
        </xbrli:entity>
        <xbrli:period>
            <xbrli:startDate>2024-01-01</xbrli:startDate>
            <xbrli:endDate>2024-12-31</xbrli:endDate>
        </xbrli:period>
        <xbrli:scenario>
            <xbrldi:explicitMember dimension="ifrs-sds:TimeHorizonAxis">
                ifrs-sds:ShortTermMember
            </xbrldi:explicitMember>
        </xbrli:scenario>
    </xbrli:context>

    <xbrli:context id="y2024_DefinitionOfTimeHorizon_MediumTermMember">
        <xbrli:entity>
            <xbrli:identifier scheme="y2024">2024</xbrli:identifier>
        </xbrli:entity>
        <xbrli:period>
            <xbrli:startDate>2024-01-01</xbrli:startDate>
            <xbrli:endDate>2024-12-31</xbrli:endDate>
        </xbrli:period>
        <xbrli:scenario>
            <xbrldi:explicitMember dimension="ifrs-sds:TimeHorizonAxis">
                ifrs-sds:MediumTermMember
            </xbrldi:explicitMember>
        </xbrli:scenario>
    </xbrli:context>

    <xbrli:context id="y2024_DefinitionOfTimeHorizon_LongTermMember">
        <xbrli:entity>
            <xbrli:identifier scheme="y2024">2024</xbrli:identifier>
        </xbrli:entity>
        <xbrli:period>
            <xbrli:startDate>2024-01-01</xbrli:startDate>
            <xbrli:endDate>2024-12-31</xbrli:endDate>
        </xbrli:period>
        <xbrli:scenario>
            <xbrldi:explicitMember dimension="ifrs-sds:TimeHorizonAxis">
                ifrs-sds:LongTermMember
            </xbrldi:explicitMember>
        </xbrli:scenario>
    </xbrli:context>

    <ifrs-sds:DefinitionOfTimeHorizonExplanatory
        contextRef="y2024_DefinitionOfTimeHorizon_ShortTermMember"
    >
        Your explanatory text here for short term member...
    </ifrs-sds:DefinitionOfTimeHorizonExplanatory>

    <ifrs-sds:DefinitionOfTimeHorizonExplanatory
        contextRef="y2024_DefinitionOfTimeHorizon_MediumTermMember"
    >
        Your explanatory text here for medium term member...
    </ifrs-sds:DefinitionOfTimeHorizonExplanatory>

    <ifrs-sds:DefinitionOfTimeHorizonExplanatory
        contextRef="y2024_DefinitionOfTimeHorizon_LongTermMember"
    >
        Your explanatory text here for long term member...
    </ifrs-sds:DefinitionOfTimeHorizonExplanatory>

    <ifrs-sds:HowDefinitionOfTimeHorizonsIsLinkedToPlanningHorizonsUsedForStrategicDecisionmakingExplanatory
        contextRef="y2024_DefinitionOfTimeHorizon_ShortTermMember"
    >
        Your explanatory text here for short term member...
    </ifrs-sds:HowDefinitionOfTimeHorizonsIsLinkedToPlanningHorizonsUsedForStrategicDecisionmakingExplanatory>

    <ifrs-sds:HowDefinitionOfTimeHorizonsIsLinkedToPlanningHorizonsUsedForStrategicDecisionmakingExplanatory
        contextRef="y2024_DefinitionOfTimeHorizon_MediumTermMember"
    >
        Your explanatory text here for medium term member...
    </ifrs-sds:HowDefinitionOfTimeHorizonsIsLinkedToPlanningHorizonsUsedForStrategicDecisionmakingExplanatory>

    <ifrs-sds:HowDefinitionOfTimeHorizonsIsLinkedToPlanningHorizonsUsedForStrategicDecisionmakingExplanatory
        contextRef="y2024_DefinitionOfTimeHorizon_LongTermMember"
    >
        Your explanatory text here for long term member...
    </ifrs-sds:HowDefinitionOfTimeHorizonsIsLinkedToPlanningHorizonsUsedForStrategicDecisionmakingExplanatory>

</xbrli:xbrl>

我还在上下文元素内尝试了不同的布局,但使用这个新布局我只是得到了不同的错误:

    <xbrli:context id="y2024_DefinitionOfTimeHorizon_LongTermMember">
        <xbrli:entity>
            <xbrli:identifier scheme="y2024">2024</xbrli:identifier>
            <xbrli:segment>
                <xbrldi:explicitMember dimension="ifrs-sds:TimeHorizonAxis">
                    ifrs-sds:LongTermMember
                </xbrldi:explicitMember>
            </xbrli:segment>
        </xbrli:entity>
        <xbrli:period>
            <xbrli:startDate>2024-01-01</xbrli:startDate>
            <xbrli:endDate>2024-12-31</xbrli:endDate>
        </xbrli:period>
    </xbrli:context>
[xbrlxe:nonDimensionalSegmentScenarioContent] Contexts MUST not contain non-dimensional content: y2024_DefinitionOfTimeHorizonExplanatory_LongTermMember - disclosure-v6.xbrl 25, 40
xml xsd xbrl arelle ifrs
1个回答
0
投票

感谢您提供完整的文档。

xbrldi
的命名空间似乎不正确,它应该是
http://xbrl.org/2006/xbrldi
,没有
www.

不正确的命名空间导致更高级别的错误而不是 XML 验证错误(这会提供更多信息)的原因是,在 XBRL 的较低层中,段和场景内可能存在任何内容,即使未知命名空间。 XBRL Dimensions 添加了一个需要特定元素的层,例如

xbrldi:explicitMember
(在
http://xbrl.org/2006/xbrldi
命名空间中)。

© www.soinside.com 2019 - 2024. All rights reserved.