XBRL 用のパーサーを開発しました。最近解析した分類法の禁止と上書きのルールに問題があります。
パーサーを実装する際に、XBRL 2.1 仕様を参照しました。現在、いくつかのラベルが欠落しており、分類法またはコードが有効でないかどうかわかりません。
以下は、2 つのファイルに分割されたいくつかのラベル アークのサンプル コードです。
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 つのアークがあります
- 2 つの円弧は、優先度 0 の実際のラベルを導入し、属性
use="optional"
が設定されています。 use="prohibited"
最初のアークは、属性セットをハットしているため、禁止アークです。- 禁止アークの優先度は 1 であるため、優先度が 1 よりも低いすべてのアークはネットワークから除外されます。これが、他の 2 つのラベルが追い出される理由です。
ここに私の問題があります: 最初の acr の XBRL ロケーターが最後のラベルを指しています。href
属性が であることを意味しますfile#label_de-gaap-ci_is.netIncome.regular.operatingTC.otherCost.leaseFix.other
。私はパーサーを次のように開発しました。ID または from/to 値が同一の場合、上書きと禁止のルールが適用されます。したがって、ロケーターが両方のラベル ID を同じ値に変更するのか、それとも異なるファイルにある場合にこれら 2 つを区別する必要があるのか わかりません...?
アイデアはありますか?