90 likes | 120 Views
Learn about XBRL Taxonomy Parser, a crucial tool for handling complex financial data structures, simplifying reporting, and ensuring compliance with accounting standards.
E N D
XBRL Programming 3. Taxonomy 20120119 魏長風 cfwei.tw@gmail.com
http://www.dummies.com/how-to/content/xbrl-for-dummies-cheat-sheet.htmlhttp://www.dummies.com/how-to/content/xbrl-for-dummies-cheat-sheet.html
Taxonomy • 用來描述某個單位所制定的會計準則 • Taxonomy = Schema + Linkbases • Schema, 定義所有的科目 • Linkbase • Label, 各國語言對照 • Presentation, 定義表格 • Calculation, 定義加總關係 • Definition, 大多用在dimension • Reference, 會計法規連結
We need Taxonomy Parser • Instance結構簡單, 直接處理不難 • Taxonomy結構十分複雜 • NCCU Taxonomy Parser一共用了8644行c++ code. • DTS, schema檔會import其他schema檔 • Linkbase • 並不是單純樹狀XML • 使用XPointer/XLink • 會連結到別的linkbase檔案內容 • 必須照order來排序
DTS B Taxonomy C Taxonomy A Taxonomy A Schema B Schema C Schema A1 label A2 presentation A3 calculation B1 label B2 presentation B3 calculation C1 label C2 presentation C3 calculation D Taxonomy D Schema D1 label D2 presentation D3 calculation
Linkbase processing <loc xlink:label=“AA”> <**Arc xlink:from=“AA” xlink:to=“BB”> <**Arc xlink:from=“AA” xlink:to=“CC”> <loc xlink:label=“BB”> <loc xlink:label=“CC”> <**Arc xlink:from=“CC” xlink:to=“DD”> <**Arc xlink:from=“CC” xlink:to=“EE”> <loc xlink:label=“DD”> <loc xlink:label=“EE”>
reading Taxonomy how-to • 1. JCX Taxonomy API • 昨天課程有敎 • Java programming • 2. NCCU XBRL tools • http://www.openfoundry.org/of/projects/1938 • TaxParserTree.exe • 將Taxonomy轉成比較簡單的格式 • 3. others
Parser tree output • Command line: TaxParserTree.exe DemoSite.20091117\tw-tse-pt_2008-12-20.xsd ParserTree.xml • 透過DOM+XPath來讀取ParserTree.xml
NCCU Taxonomy Parser Taxonomy Parser