Views: 28
ArelleとXULEでxBRL-CSVから試算表(2)
1. XINCEでインスタンス文書作成
ArelleとXULEでxBRL-CSVから試算表
の続きです。
XINCEでXBRLのインスタンス文書が作成できるということなので、マニュアルを頼りにスクリプトを作成したのですが、Arelleのプラグインとして実行するオプション指定がよく分からないこともあり、XBRL USのCampbell Pryde氏に途中経過を報告して問題個所を確認したところ、スクリプトの先頭箇所にoutput-attributeの指定が必要でした。
実行時のパラメタも教えていただき、インスタンス文書が作成できました。
今回の問い合わせの内容は、XBRL USのGitHub に登録していただいたそうです。
TO FIX YOUR EXAMPLE SEE BELOW:
Add the following to the top of your Xule expression:/** Define output attributes **/
output-attribute instance-name
output-attribute instance-taxonomy
output-attribute fact-value
output-attribute fact-concept
output-attribute fact-unit
output-attribute fact-entity
output-attribute fact-period
output-attribute fact-decimals
output-attribute fact-dimensions
output-attribute fact-instance
output-attribute fact-alignment
output-attribute fact-footnote
output-attribute fact-id
output-attribute fact-is-nil
output-attribute file-location
output-attribute file-contentnamespace iso4217 = http://www.xbrl.org/2003/iso4217
namespace us-gaap = http://fasb.org/us-gaap/2023output createInstance
true
instance-name ‘myInstance’
instance-taxonomy ‘https://xbrl.fasb.org/us-gaap/2023/entire/us-gaap-entryPoint-std-2023.xsd’
fact-value 1230000
fact-concept ‘\{http://fasb.org/us-gaap/2023\}Assets’
fact-unit unit(iso4217:JPY).to-xince
fact-entity entity(‘http://test/report’,’CompanyX’).to-xince
fact-period date(‘2024-12-31’).to-xince
fact-decimals -6
fact-instance ‘myInstance’To compile a your code:
python3.12 ~/arelle/Arelle-master/arellecmdline.py –xule-compile ~/Documents/GitHub/anyFolder/source/ –plugins “xule” –xule-rule-set ~/Documents/GitHub/anyFolder/map-2022-ruleset.zip –xule-max-recurse-depth=25000
The script to create an instance is as follows is as follows:
python ~/arelle/Arelle-master/arellecmdline.py –plugins ‘xule|xodel’ –xule-time .005 –xule-debug –noCertificateCheck –logFile ~/Documents/GitHub/anyFolder/instance-map.xml –xule-rule-set ~/Documents/GitHub/anyFolder/map-2022-ruleset.zip –xodel-location ~/Documents/GitHub/anyFolder –xodel-show-xule-log
The report.xsd file you refer to must exist in the location specified.
President and CEO XBRL US Inc.
2. XBRL USのホームページ
3. XULEについてCampbell Pryde氏へのインタビュー
次のリンクにインタビューがあります。
コメントを残す