1

我为 XBRL 开发了一个解析器。我对最近解析的分类法中的禁止和覆盖规则有疑问:

我在实现解析器时参考了 XBRL 2.1 规范。现在,我缺少一些标签,不知道分类法或我的代码是否无效。

以下是分隔在两个文件中的一些标签弧的示例代码:

File 1: <labelArc xlink:from="de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
            xlink:to="extlabel_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
            priority="1"
            use="prohibited"
            xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label"
            xlink:type="arc"/>
<labelArc xlink:from="de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
                xlink:to="label_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
                xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label"
                xlink:type="arc"/>
<label xlink:label="label_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
             id="label_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
             xlink:role="http://www.xbrl.org/2003/role/label"
             xlink:type="resource"
             xml:lang="de">Übrige / nicht zuordenbare Miete und Pacht für unbewegliche Wirtschaftsgüter</label>## Heading ##
File 2: <labelArc xlink:from="de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
                xlink:to="label_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
                priority="0"
                use="optional"
                xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label"
                xlink:type="arc"/>
<label xlink:label="label_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
             id="label_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
             xlink:role="http://www.xbrl.org/2003/role/label"
             xlink:type="resource"
             xml:lang="de">Übrige Miete und Pacht für unbewegliche Wirtschaftsgüter</label>

我的解析器说这个概念de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other没有标签,因为:

  • 该标签对应有3条弧线
  • 两条弧线引入了一个优先级为 0 的实际标签并具有属性use="optional"
  • 第一条弧是禁止弧,因为它具有属性use="prohibited"
  • 禁止弧的优先级为 1,因此所有优先级低于 1 的弧都被排除在网络之外,这就是其他两个标签被踢出的原因

这是我的问题:第一个 acr 的 XBRL 定位器指向最后一个标签。表示href属性是file#label_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other. 我按如下方式开发了我的解析器:如果 ID 或 from/to 值相同,则适用覆盖和禁止规则。因此,我不知道定位器是否将两个标签 ID 更改为相等的值,或者如果它们位于不同的文件中,我是否必须区分这两者......?

你有想法吗?

4

1 回答 1

0

(File 1: labelArc 1) 和 (File 2: labelArc 1) 确实是等价关系,因为它们指向的 XML 片段是相同的(不是因为“xlink:to”属性的值相等)。

(File 1: labelArc 2) 不等于上面提到的 2 个 labelArcs,因为它指向不同的 XML 片段(to-attribute 的值不是x-equal,因此 labelArcs 不是s-equal,这意味着它们是不等价)。因此,不禁止并应显示以下标签:

<label xlink:label="label_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
         id="label_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other"
         xlink:role="http://www.xbrl.org/2003/role/label"
         xlink:type="resource"
         xml:lang="de">Übrige / nicht zuordenbare Miete und Pacht für unbewegliche Wirtschaftsgüter</label>

x-equal 表示不比较字符串值,而是比较它们指向的 XML 片段的标识。

我希望这个答案不会太混乱?

于 2012-05-03T09:54:22.933 回答