xbrlware-ce 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. data/Copying.txt +13 -0
  2. data/License.txt +13 -0
  3. data/Rakefile.rb +124 -0
  4. data/Readme.txt +15 -0
  5. data/doc/classes/Edgar.html +144 -0
  6. data/doc/classes/Edgar/HTMLFeedDownloader.html +199 -0
  7. data/doc/classes/Edgar/RSSFeedDownloader.html +225 -0
  8. data/doc/classes/Xbrlware.html +350 -0
  9. data/doc/classes/Xbrlware/Context.html +429 -0
  10. data/doc/classes/Xbrlware/Entity.html +323 -0
  11. data/doc/classes/Xbrlware/Identifier.html +191 -0
  12. data/doc/classes/Xbrlware/Instance.html +742 -0
  13. data/doc/classes/Xbrlware/Item.html +278 -0
  14. data/doc/classes/Xbrlware/LBConstants.html +144 -0
  15. data/doc/classes/Xbrlware/Linkbase.html +131 -0
  16. data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase.html +212 -0
  17. data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation.html +172 -0
  18. data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation/CalculationArc.html +166 -0
  19. data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase.html +210 -0
  20. data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition.html +204 -0
  21. data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition/DefinitionArc.html +160 -0
  22. data/doc/classes/Xbrlware/Linkbase/LabelLinkbase.html +239 -0
  23. data/doc/classes/Xbrlware/Linkbase/LabelLinkbase/Label.html +189 -0
  24. data/doc/classes/Xbrlware/Linkbase/Linkbase.html +172 -0
  25. data/doc/classes/Xbrlware/Linkbase/Linkbase/Link.html +217 -0
  26. data/doc/classes/Xbrlware/Linkbase/Linkbase/Link/Arc.html +284 -0
  27. data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase.html +224 -0
  28. data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation.html +222 -0
  29. data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation/PresentationArc.html +160 -0
  30. data/doc/classes/Xbrlware/Taxonomy.html +369 -0
  31. data/doc/classes/Xbrlware/TaxonomyDefintion.html +177 -0
  32. data/doc/classes/Xbrlware/Unit.html +179 -0
  33. data/doc/classes/Xbrlware/Unit/Divide.html +165 -0
  34. data/doc/created.rid +1 -0
  35. data/doc/files/Readme_txt.html +124 -0
  36. data/doc/files/lib/edgar/edgar_data_downloader_rb.html +129 -0
  37. data/doc/files/lib/edgar/util_rb.html +129 -0
  38. data/doc/files/lib/edgar_rb.html +141 -0
  39. data/doc/files/lib/xbrlware/constants_rb.html +129 -0
  40. data/doc/files/lib/xbrlware/context_rb.html +129 -0
  41. data/doc/files/lib/xbrlware/date_util_rb.html +129 -0
  42. data/doc/files/lib/xbrlware/float_patch_rb.html +129 -0
  43. data/doc/files/lib/xbrlware/hash_util_rb.html +129 -0
  44. data/doc/files/lib/xbrlware/instance_rb.html +129 -0
  45. data/doc/files/lib/xbrlware/item_rb.html +129 -0
  46. data/doc/files/lib/xbrlware/linkbase/calculation_linkbase_rb.html +129 -0
  47. data/doc/files/lib/xbrlware/linkbase/definition_linkbase_rb.html +129 -0
  48. data/doc/files/lib/xbrlware/linkbase/label_linkbase_rb.html +129 -0
  49. data/doc/files/lib/xbrlware/linkbase/linkbase_rb.html +129 -0
  50. data/doc/files/lib/xbrlware/linkbase/presentation_linkbase_rb.html +129 -0
  51. data/doc/files/lib/xbrlware/meta_util_rb.html +129 -0
  52. data/doc/files/lib/xbrlware/taxonomy_rb.html +129 -0
  53. data/doc/files/lib/xbrlware/unit_rb.html +129 -0
  54. data/doc/files/lib/xbrlware/util_rb.html +129 -0
  55. data/doc/files/lib/xbrlware/xml_parser_rb.html +129 -0
  56. data/doc/files/lib/xbrlware_rb.html +163 -0
  57. data/doc/fr_class_index.html +55 -0
  58. data/doc/fr_file_index.html +48 -0
  59. data/doc/fr_method_index.html +104 -0
  60. data/doc/index.html +24 -0
  61. data/doc/rdoc-style.css +208 -0
  62. data/example/benchmark/instance_parser_benchmark.rb +25 -0
  63. data/example/case_study/buy_strategy.rb +34 -0
  64. data/example/case_study/c-20091230.xml +29 -0
  65. data/example/case_study/c_sell_strategy.rb +29 -0
  66. data/example/lang_integration/thrift/rating-client.py +21 -0
  67. data/example/lang_integration/thrift/rating-impl.rb +13 -0
  68. data/example/lang_integration/thrift/rating-server.rb +25 -0
  69. data/example/lang_integration/thrift/rating.thrift +52 -0
  70. data/example/quick_start/foo.rb +10 -0
  71. data/example/quick_start/foo.xml +29 -0
  72. data/example/quick_start/print_item.rb +27 -0
  73. data/lib/edgar.rb +30 -0
  74. data/lib/edgar/edgar_data_downloader.rb +126 -0
  75. data/lib/edgar/util.rb +30 -0
  76. data/lib/xbrlware.rb +65 -0
  77. data/lib/xbrlware/constants.rb +29 -0
  78. data/lib/xbrlware/context.rb +148 -0
  79. data/lib/xbrlware/date_util.rb +35 -0
  80. data/lib/xbrlware/float_patch.rb +26 -0
  81. data/lib/xbrlware/hash_util.rb +175 -0
  82. data/lib/xbrlware/instance.rb +406 -0
  83. data/lib/xbrlware/item.rb +115 -0
  84. data/lib/xbrlware/linkbase/calculation_linkbase.rb +137 -0
  85. data/lib/xbrlware/linkbase/definition_linkbase.rb +186 -0
  86. data/lib/xbrlware/linkbase/label_linkbase.rb +128 -0
  87. data/lib/xbrlware/linkbase/linkbase.rb +170 -0
  88. data/lib/xbrlware/linkbase/presentation_linkbase.rb +160 -0
  89. data/lib/xbrlware/meta_util.rb +45 -0
  90. data/lib/xbrlware/taxonomies/us_gaap_taxonomy_20090131.rb +40365 -0
  91. data/lib/xbrlware/taxonomy.rb +133 -0
  92. data/lib/xbrlware/unit.rb +42 -0
  93. data/lib/xbrlware/util.rb +83 -0
  94. data/lib/xbrlware/xml_parser.rb +122 -0
  95. data/setup.rb +1585 -0
  96. data/test/lib/edgar/edgar_data_downloader_test.rb +35 -0
  97. data/test/lib/edgar/resources/0000930413-09-005485-index.htm +331 -0
  98. data/test/lib/edgar/resources/usgaap.rss.xml +2861 -0
  99. data/test/lib/xbrlware/411_footnotes_test.rb +65 -0
  100. data/test/lib/xbrlware/42_schemaref_test.rb +20 -0
  101. data/test/lib/xbrlware/46_item_test.rb +253 -0
  102. data/test/lib/xbrlware/47_context_test.rb +129 -0
  103. data/test/lib/xbrlware/48_unit_test.rb +45 -0
  104. data/test/lib/xbrlware/49_tuple_test.rb +12 -0
  105. data/test/lib/xbrlware/date_util_test.rb +24 -0
  106. data/test/lib/xbrlware/dimension/context_explicit_dimension_test.rb +40 -0
  107. data/test/lib/xbrlware/dimension/resources/context_explicit_dimension.xml +84 -0
  108. data/test/lib/xbrlware/float_patch_test.rb +10 -0
  109. data/test/lib/xbrlware/hash_util_test.rb +29 -0
  110. data/test/lib/xbrlware/instance_test.rb +250 -0
  111. data/test/lib/xbrlware/linkbase/calculation_linkbase_test.rb +39 -0
  112. data/test/lib/xbrlware/linkbase/definition_linkbase_test.rb +35 -0
  113. data/test/lib/xbrlware/linkbase/label_linkbase_test.rb +22 -0
  114. data/test/lib/xbrlware/linkbase/linkbase_test.rb +36 -0
  115. data/test/lib/xbrlware/linkbase/linkbase_test_util.rb +98 -0
  116. data/test/lib/xbrlware/linkbase/presentation_linkbase_test.rb +33 -0
  117. data/test/lib/xbrlware/linkbase/report.html +62 -0
  118. data/test/lib/xbrlware/linkbase/resources/cal.xml +219 -0
  119. data/test/lib/xbrlware/linkbase/resources/def.xml +186 -0
  120. data/test/lib/xbrlware/linkbase/resources/def_with_multiple_dimension.xml +41 -0
  121. data/test/lib/xbrlware/linkbase/resources/instance.xml +5822 -0
  122. data/test/lib/xbrlware/linkbase/resources/lab.xml +782 -0
  123. data/test/lib/xbrlware/linkbase/resources/pre.xml +485 -0
  124. data/test/lib/xbrlware/linkbase/resources/report_10_q.htm +12327 -0
  125. data/test/lib/xbrlware/linkbase/resources/taxonomy.xsd +178 -0
  126. data/test/lib/xbrlware/linkbase/sample_html_report.html +40 -0
  127. data/test/lib/xbrlware/meta_util_test.rb +23 -0
  128. data/test/lib/xbrlware/resources/411/411_footnotes.xml +66 -0
  129. data/test/lib/xbrlware/resources/42/42_schema_ref_with_base.xml +7 -0
  130. data/test/lib/xbrlware/resources/42/42_schema_ref_without_base.xml +7 -0
  131. data/test/lib/xbrlware/resources/46/46_item_value.xml +61 -0
  132. data/test/lib/xbrlware/resources/47/472_period_forever.xml +29 -0
  133. data/test/lib/xbrlware/resources/47/472_period_instant.xml +24 -0
  134. data/test/lib/xbrlware/resources/47/472_period_start_dt_and_end_dt.xml +30 -0
  135. data/test/lib/xbrlware/resources/47/4731_entity_identifier.xml +29 -0
  136. data/test/lib/xbrlware/resources/47/4732_entity_segment_not_present.xml +24 -0
  137. data/test/lib/xbrlware/resources/47/4732_entity_segment_present.xml +30 -0
  138. data/test/lib/xbrlware/resources/47/474_scenario_not_present.xml +26 -0
  139. data/test/lib/xbrlware/resources/47/474_scenario_present.xml +30 -0
  140. data/test/lib/xbrlware/resources/47/47_multiple_contexts.xml +36 -0
  141. data/test/lib/xbrlware/resources/48/482_unit_measure.xml +32 -0
  142. data/test/lib/xbrlware/resources/48/483_unit_divide.xml +39 -0
  143. data/test/lib/xbrlware/resources/48/48_multiple_units.xml +43 -0
  144. data/test/lib/xbrlware/resources/49/49_tuple.xml +61 -0
  145. data/test/lib/xbrlware/resources/49_tuple.xsd +44 -0
  146. data/test/lib/xbrlware/resources/instance.xml +128 -0
  147. data/test/lib/xbrlware/resources/report_test_xbrl_files/cal.xml +219 -0
  148. data/test/lib/xbrlware/resources/report_test_xbrl_files/def.xml +186 -0
  149. data/test/lib/xbrlware/resources/report_test_xbrl_files/instance.xml +5822 -0
  150. data/test/lib/xbrlware/resources/report_test_xbrl_files/lab.xml +782 -0
  151. data/test/lib/xbrlware/resources/report_test_xbrl_files/pre.xml +485 -0
  152. data/test/lib/xbrlware/resources/report_test_xbrl_files/report/report_index.html +62 -0
  153. data/test/lib/xbrlware/resources/report_test_xbrl_files/taxonomy.xsd +178 -0
  154. data/test/lib/xbrlware/resources/taxonomy_test_files/1/cal.xml +223 -0
  155. data/test/lib/xbrlware/resources/taxonomy_test_files/1/def.xml +190 -0
  156. data/test/lib/xbrlware/resources/taxonomy_test_files/1/lab.xml +786 -0
  157. data/test/lib/xbrlware/resources/taxonomy_test_files/1/pre.xml +489 -0
  158. data/test/lib/xbrlware/resources/taxonomy_test_files/1/taxonomy.xsd +177 -0
  159. data/test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/cal.xml +223 -0
  160. data/test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/def.xml +190 -0
  161. data/test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/lab.xml +786 -0
  162. data/test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/pre.xml +489 -0
  163. data/test/lib/xbrlware/resources/taxonomy_test_files/2/taxonomy.xsd +175 -0
  164. data/test/lib/xbrlware/resources/taxonomy_test_files/3/taxonomy.xsd +175 -0
  165. data/test/lib/xbrlware/resources/us_gaap_schema.xsd +8 -0
  166. data/test/lib/xbrlware/resources/us_gaap_schema_local.xsd +10 -0
  167. data/test/lib/xbrlware/resources/util_test_xbrl_files/cal.xml +219 -0
  168. data/test/lib/xbrlware/resources/util_test_xbrl_files/def.xml +186 -0
  169. data/test/lib/xbrlware/resources/util_test_xbrl_files/instance.xml +5822 -0
  170. data/test/lib/xbrlware/resources/util_test_xbrl_files/lab.xml +782 -0
  171. data/test/lib/xbrlware/resources/util_test_xbrl_files/pre.xml +485 -0
  172. data/test/lib/xbrlware/resources/util_test_xbrl_files/taxonomy.xsd +178 -0
  173. data/test/lib/xbrlware/resources/xbrl_xsd/dei-2009-01-31.xsd +162 -0
  174. data/test/lib/xbrlware/resources/xbrl_xsd/dei-std-2009-01-31.xsd +23 -0
  175. data/test/lib/xbrlware/resources/xbrl_xsd/negated-2008-03-31.xsd +23 -0
  176. data/test/lib/xbrlware/resources/xbrl_xsd/ref-2006-02-27.xsd +121 -0
  177. data/test/lib/xbrlware/resources/xbrl_xsd/us-gaap-2009-01-31.xsd +13474 -0
  178. data/test/lib/xbrlware/resources/xbrl_xsd/us-roles-2009-01-31.xsd +2283 -0
  179. data/test/lib/xbrlware/resources/xbrl_xsd/us-types-2009-01-31.xsd +368 -0
  180. data/test/lib/xbrlware/resources/xbrl_xsd/xbrl-instance-2003-12-31.xsd +772 -0
  181. data/test/lib/xbrlware/resources/xbrl_xsd/xbrl-linkbase-2003-12-31.xsd +477 -0
  182. data/test/lib/xbrlware/resources/xbrl_xsd/xbrldi-2006.xsd +41 -0
  183. data/test/lib/xbrlware/resources/xbrl_xsd/xbrldt-2005.xsd +53 -0
  184. data/test/lib/xbrlware/resources/xbrl_xsd/xl-2003-12-31.xsd +246 -0
  185. data/test/lib/xbrlware/resources/xbrl_xsd/xlink-2003-12-31.xsd +117 -0
  186. data/test/lib/xbrlware/taxonomy_test.rb +124 -0
  187. data/test/lib/xbrlware/util_test.rb +18 -0
  188. data/test/lib/xbrlware/xml_parser_test.rb +142 -0
  189. data/test/schema_validator_jruby.rb +40 -0
  190. data/test/schema_validator_ruby.rb +7 -0
  191. data/test/scratchpad/block.rb +36 -0
  192. data/test/test_helper.rb +21 -0
  193. data/xbrlware.iml +30 -0
  194. metadata +261 -0
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- (c) 2005 XBRL International. All Rights Reserved. http://www.XBRL.org/legal/
3
+ This document may be copied and furnished to others, and derivative works that
4
+ comment on or otherwise explain it or assist in its implementation may be
5
+ prepared, copied, published and distributed, in whole or in part, without
6
+ restriction of any kind, provided that the above copyright notice and this
7
+ paragraph are included on all such copies and derivative works. XBRL(r), is a
8
+ trademark or service mark of XBRL International, Inc., registered in the
9
+ United States and in other countries. -->
10
+ <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xbrl.org/2006/xbrldi" elementFormDefault="qualified" attributeFormDefault="unqualified">
11
+ <annotation>
12
+ <appinfo>
13
+ <documentation xml:lang="en">This schema is used by XBRL instances that use dimensions to define legal segment and scenario element contents.</documentation>
14
+ </appinfo>
15
+ </annotation>
16
+ <element name="explicitMember">
17
+ <annotation>
18
+ <documentation xml:lang="en">This element contains the QName of an item that is a member of an explicit dimension.
19
+ </documentation>
20
+ </annotation>
21
+ <complexType>
22
+ <simpleContent>
23
+ <extension base="QName">
24
+ <attribute name="dimension" type="QName" use="required"/>
25
+ </extension>
26
+ </simpleContent>
27
+ </complexType>
28
+ </element>
29
+ <element name="typedMember">
30
+ <annotation>
31
+ <documentation xml:lang="en">This element constains one child of anyType.
32
+ </documentation>
33
+ </annotation>
34
+ <complexType>
35
+ <sequence>
36
+ <any namespace="##other"/>
37
+ </sequence>
38
+ <attribute name="dimension" type="QName" use="required"/>
39
+ </complexType>
40
+ </element>
41
+ </schema>
@@ -0,0 +1,53 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- (c) 2005 XBRL International. All Rights Reserved. http://www.XBRL.org/legal/
3
+ This document may be copied and furnished to others, and derivative works that
4
+ comment on or otherwise explain it or assist in its implementation may be
5
+ prepared, copied, published and distributed, in whole or in part, without
6
+ restriction of any kind, provided that the above copyright notice and this
7
+ paragraph are included on all such copies and derivative works. XBRL(r), is a
8
+ trademark or service mark of XBRL International, Inc., registered in the
9
+ United States and in other countries. -->
10
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xl="http://www.xbrl.org/2003/XLink" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" targetNamespace="http://xbrl.org/2005/xbrldt" elementFormDefault="qualified" attributeFormDefault="unqualified">
11
+ <xs:annotation>
12
+ <xs:appinfo>
13
+ <arcroleType id="hypercube-dimension" cyclesAllowed="none" arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension">
14
+ <definition>Source (a hypercube) contains the target (a dimension) among others.</definition>
15
+ <usedOn>definitionArc</usedOn>
16
+ </arcroleType>
17
+ <arcroleType id="dimension-domain" cyclesAllowed="none" arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain">
18
+ <definition>Source (a dimension) has only the target (a domain) as its domain.</definition>
19
+ <usedOn>definitionArc</usedOn>
20
+ </arcroleType>
21
+ <arcroleType id="domain-member" cyclesAllowed="undirected" arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member">
22
+ <definition>Source (a domain) contains the target (a member).</definition>
23
+ <usedOn>definitionArc</usedOn>
24
+ </arcroleType>
25
+ <arcroleType id="all" cyclesAllowed="undirected" arcroleURI="http://xbrl.org/int/dim/arcrole/all">
26
+ <definition>Source (a primary item declaration) requires a combination of dimension members of the target (hypercube) to appear in the context of the primary item.</definition>
27
+ <usedOn>definitionArc</usedOn>
28
+ </arcroleType>
29
+ <arcroleType id="notAll" cyclesAllowed="undirected" arcroleURI="http://xbrl.org/int/dim/arcrole/notAll">
30
+ <definition>Source (a primary item declaration) requires a combination of dimension members of the target (hypercube) not to appear in the context of the primary item.</definition>
31
+ <usedOn>definitionArc</usedOn>
32
+ </arcroleType>
33
+ <arcroleType id="dimension-default" cyclesAllowed="none" arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default">
34
+ <definition>Source (a dimension) declares that there is a default member that is the target of the arc (a member).</definition>
35
+ <usedOn>definitionArc</usedOn>
36
+ </arcroleType>
37
+ </xs:appinfo>
38
+ </xs:annotation>
39
+ <xs:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="xbrl-instance-2003-12-31.xsd"/>
40
+ <xs:simpleType name="contextElementType">
41
+ <xs:restriction base="xs:token">
42
+ <xs:enumeration value="segment"/>
43
+ <xs:enumeration value="scenario"/>
44
+ </xs:restriction>
45
+ </xs:simpleType>
46
+ <xs:attribute name="contextElement" type="xbrldt:contextElementType"/>
47
+ <xs:attribute name="typedDomainRef" type="xs:anyURI"/>
48
+ <xs:attribute name="closed" type="xs:boolean" default="false"/>
49
+ <xs:attribute name="usable" type="xs:boolean" default="true"/>
50
+ <xs:attribute name="targetRole" type="xs:anyURI"/>
51
+ <xs:element name="hypercubeItem" id="xbrldt_hypercubeItem" abstract="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration"/>
52
+ <xs:element name="dimensionItem" id="xbrldt_dimensionItem" abstract="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration"/>
53
+ </xs:schema>
@@ -0,0 +1,246 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- (c) XBRL International. See www.xbrl.org/legal
3
+
4
+ This version is non-normative - it should be identical to the normative
5
+ version that is contained in Appendix A of the specification RECOMMENDATION
6
+ with errata corrections to 2008-07-02 except for this comment.
7
+
8
+ Following the schema maintenance policy of XBRL International, this version's
9
+ location on the web will be as follows:
10
+
11
+ 1) While it is the most current RECOMMENDED version of the schema and until it is
12
+ superseded by any additional errata corrections it will reside on the web at
13
+
14
+ http://www.xbrl.org/2003/xl-2003-12-31.xsd
15
+
16
+ 2) It will be archived in perpetuity at
17
+
18
+ http://www.xbrl.org/2003/2008-07-02/xl-2003-12-31.xsd
19
+
20
+ -->
21
+ <schema targetNamespace="http://www.xbrl.org/2003/XLink" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xl="http://www.xbrl.org/2003/XLink" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
22
+
23
+ <import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink-2003-12-31.xsd"/>
24
+
25
+ <simpleType name="nonEmptyURI">
26
+ <annotation>
27
+ <documentation>
28
+ A URI type with a minimum length of 1 character.
29
+ Used on role and arcrole and href elements.
30
+ </documentation>
31
+ </annotation>
32
+ <restriction base="anyURI">
33
+ <minLength value="1"/>
34
+ </restriction>
35
+ </simpleType>
36
+
37
+
38
+ <complexType name="documentationType">
39
+ <annotation>
40
+ <documentation>
41
+ Element type to use for documentation of
42
+ extended links and linkbases.
43
+ </documentation>
44
+ </annotation>
45
+ <simpleContent>
46
+ <extension base="string">
47
+ <anyAttribute namespace="##other" processContents="lax"/>
48
+ </extension>
49
+ </simpleContent>
50
+ </complexType>
51
+
52
+ <element name="documentation" type="xl:documentationType" abstract="true">
53
+ <annotation>
54
+ <documentation>
55
+ Abstract element to use for documentation of
56
+ extended links and linkbases.
57
+ </documentation>
58
+ </annotation>
59
+ </element>
60
+
61
+ <annotation>
62
+ <documentation>
63
+ XBRL simple and extended link schema constructs
64
+ </documentation>
65
+ </annotation>
66
+
67
+ <complexType name="titleType">
68
+ <annotation>
69
+ <documentation>
70
+ Type for the abstract title element -
71
+ used as a title element template.
72
+ </documentation>
73
+ </annotation>
74
+ <complexContent>
75
+ <restriction base="anyType">
76
+ <attribute ref="xlink:type" use="required" fixed="title"/>
77
+ </restriction>
78
+ </complexContent>
79
+ </complexType>
80
+ <element name="title" type="xl:titleType" abstract="true">
81
+ <annotation>
82
+ <documentation>
83
+ Generic title element for use in extended link documentation.
84
+ Used on extended links, arcs, locators.
85
+ See http://www.w3.org/TR/xlink/#title-element for details.
86
+ </documentation>
87
+ </annotation>
88
+ </element>
89
+
90
+ <complexType name="locatorType">
91
+ <annotation>
92
+ <documentation>
93
+ Generic locator type.
94
+ </documentation>
95
+ </annotation>
96
+ <complexContent>
97
+ <restriction base="anyType">
98
+ <sequence>
99
+ <element ref="xl:title" minOccurs="0" maxOccurs="unbounded"/>
100
+ </sequence>
101
+ <attribute ref="xlink:type" use="required" fixed="locator"/>
102
+ <attribute ref="xlink:href" use="required"/>
103
+ <attribute ref="xlink:label" use="required"/>
104
+ <attribute ref="xlink:role" use="optional"/>
105
+ <attribute ref="xlink:title" use="optional"/>
106
+ </restriction>
107
+ </complexContent>
108
+ </complexType>
109
+ <element name="locator" type="xl:locatorType" abstract="true">
110
+ <annotation>
111
+ <documentation>
112
+ Abstract locator element to be used as head of locator substitution group
113
+ for all extended link locators in XBRL.
114
+ </documentation>
115
+ </annotation>
116
+ </element>
117
+
118
+ <simpleType name="useEnum">
119
+ <annotation>
120
+ <documentation>
121
+ Enumerated values for the use attribute on extended link arcs.
122
+ </documentation>
123
+ </annotation>
124
+ <restriction base="NMTOKEN">
125
+ <enumeration value="optional"/>
126
+ <enumeration value="prohibited"/>
127
+ </restriction>
128
+ </simpleType>
129
+
130
+ <complexType name="arcType">
131
+ <annotation>
132
+ <documentation>
133
+ basic extended link arc type - extended where necessary for specific arcs
134
+ Extends the generic arc type by adding use, priority and order attributes.
135
+ </documentation>
136
+ </annotation>
137
+ <complexContent>
138
+ <restriction base="anyType">
139
+ <sequence>
140
+ <element ref="xl:title" minOccurs="0" maxOccurs="unbounded"/>
141
+ </sequence>
142
+ <attribute ref="xlink:type" use="required" fixed="arc"/>
143
+ <attribute ref="xlink:from" use="required"/>
144
+ <attribute ref="xlink:to" use="required"/>
145
+ <attribute ref="xlink:arcrole" use="required"/>
146
+ <attribute ref="xlink:title" use="optional"/>
147
+ <attribute ref="xlink:show" use="optional"/>
148
+ <attribute ref="xlink:actuate" use="optional"/>
149
+ <attribute name="order" type="decimal" use="optional"/>
150
+ <attribute name="use" type="xl:useEnum" use="optional"/>
151
+ <attribute name="priority" type="integer" use="optional"/>
152
+ <anyAttribute namespace="##other" processContents="lax"/>
153
+ </restriction>
154
+ </complexContent>
155
+ </complexType>
156
+ <element name="arc" type="xl:arcType" abstract="true">
157
+ <annotation>
158
+ <documentation>
159
+ Abstract element to use as head of arc element substitution group.
160
+ </documentation>
161
+ </annotation>
162
+ </element>
163
+
164
+ <complexType name="resourceType">
165
+ <annotation>
166
+ <documentation>
167
+ Generic type for the resource type element
168
+ </documentation>
169
+ </annotation>
170
+ <complexContent mixed="true">
171
+ <restriction base="anyType">
172
+ <attribute ref="xlink:type" use="required" fixed="resource"/>
173
+ <attribute ref="xlink:label" use="required"/>
174
+ <attribute ref="xlink:role" use="optional"/>
175
+ <attribute ref="xlink:title" use="optional"/>
176
+ <attribute name="id" type="ID" use="optional"/>
177
+ </restriction>
178
+ </complexContent>
179
+ </complexType>
180
+ <element name="resource" type="xl:resourceType" abstract="true">
181
+ <annotation>
182
+ <documentation>
183
+ Abstract element to use as head of resource element substitution group.
184
+ </documentation>
185
+ </annotation>
186
+ </element>
187
+
188
+ <complexType name="extendedType">
189
+ <annotation>
190
+ <documentation>
191
+ Generic extended link type
192
+ </documentation>
193
+ </annotation>
194
+ <complexContent>
195
+ <restriction base="anyType">
196
+ <choice minOccurs="0" maxOccurs="unbounded">
197
+ <element ref="xl:title"/>
198
+ <element ref="xl:documentation"/>
199
+ <element ref="xl:locator"/>
200
+ <element ref="xl:arc"/>
201
+ <element ref="xl:resource"/>
202
+ </choice>
203
+ <attribute ref="xlink:type" use="required" fixed="extended"/>
204
+ <attribute ref="xlink:role" use="required"/>
205
+ <attribute ref="xlink:title" use="optional"/>
206
+ <attribute name="id" type="ID" use="optional"/>
207
+ <anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="lax"/>
208
+ </restriction>
209
+ </complexContent>
210
+ </complexType>
211
+ <element name="extended" type="xl:extendedType" abstract="true">
212
+ <annotation>
213
+ <documentation>
214
+ Abstract extended link element at head of extended link substitution group.
215
+ </documentation>
216
+ </annotation>
217
+ </element>
218
+
219
+ <complexType name="simpleType">
220
+ <annotation>
221
+ <documentation>
222
+ Type for the simple links defined in XBRL
223
+ </documentation>
224
+ </annotation>
225
+ <complexContent>
226
+ <restriction base="anyType">
227
+ <attribute ref="xlink:type" use="required" fixed="simple"/>
228
+ <attribute ref="xlink:href" use="required"/>
229
+ <attribute ref="xlink:arcrole" use="optional"/>
230
+ <attribute ref="xlink:role" use="optional"/>
231
+ <attribute ref="xlink:title" use="optional"/>
232
+ <attribute ref="xlink:show" use="optional"/>
233
+ <attribute ref="xlink:actuate" use="optional"/>
234
+ <anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="lax"/>
235
+ </restriction>
236
+ </complexContent>
237
+ </complexType>
238
+ <element name="simple" type="xl:simpleType" abstract="true">
239
+ <annotation>
240
+ <documentation>
241
+ The abstract element at the head of the simple link substitution group.
242
+ </documentation>
243
+ </annotation>
244
+ </element>
245
+
246
+ </schema>
@@ -0,0 +1,117 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- (c) XBRL International. See www.xbrl.org/legal
3
+
4
+ This version is non-normative - it should be identical to the normative
5
+ version that is contained in Appendix A of the specification RECOMMENDATION
6
+ with errata corrections to 2008-07-02 except for this comment.
7
+
8
+ Following the schema maintenance policy of XBRL International, this version's
9
+ location on the web will be as follows:
10
+
11
+ 1) While it is the most current RECOMMENDED version of the schema and until it is
12
+ superseded by any additional errata corrections it will reside on the web at
13
+
14
+ http://www.xbrl.org/2003/xlink-2003-12-31.xsd
15
+
16
+ 2) It will be archived in perpetuity at
17
+
18
+ http://www.xbrl.org/2003/2008-07-02/xlink-2003-12-31.xsd
19
+
20
+ -->
21
+ <schema targetNamespace="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified">
22
+
23
+ <annotation>
24
+ <documentation>
25
+ XLink attribute specification
26
+ </documentation>
27
+ </annotation>
28
+
29
+
30
+ <attribute name="type">
31
+ <simpleType>
32
+ <annotation>
33
+ <documentation>
34
+ Enumeration of values for the type attribute
35
+ </documentation>
36
+ </annotation>
37
+ <restriction base="string">
38
+ <enumeration value="simple"/>
39
+ <enumeration value="extended"/>
40
+ <enumeration value="locator"/>
41
+ <enumeration value="arc"/>
42
+ <enumeration value="resource"/>
43
+ <enumeration value="title"/>
44
+ </restriction>
45
+ </simpleType>
46
+ </attribute>
47
+
48
+ <attribute name="role">
49
+ <simpleType>
50
+ <annotation>
51
+ <documentation>
52
+ A URI with a minimum length of 1 character.
53
+ </documentation>
54
+ </annotation>
55
+ <restriction base="anyURI">
56
+ <minLength value="1"/>
57
+ </restriction>
58
+ </simpleType>
59
+ </attribute>
60
+
61
+ <attribute name="arcrole">
62
+ <simpleType>
63
+ <annotation>
64
+ <documentation>
65
+ A URI with a minimum length of 1 character.
66
+ </documentation>
67
+ </annotation>
68
+ <restriction base="anyURI">
69
+ <minLength value="1"/>
70
+ </restriction>
71
+ </simpleType>
72
+ </attribute>
73
+
74
+ <attribute name="title" type="string"/>
75
+
76
+ <attribute name="show">
77
+ <simpleType>
78
+ <annotation>
79
+ <documentation>
80
+ Enumeration of values for the show attribute
81
+ </documentation>
82
+ </annotation>
83
+ <restriction base="string">
84
+ <enumeration value="new"/>
85
+ <enumeration value="replace"/>
86
+ <enumeration value="embed"/>
87
+ <enumeration value="other"/>
88
+ <enumeration value="none"/>
89
+ </restriction>
90
+ </simpleType>
91
+ </attribute>
92
+
93
+ <attribute name="actuate">
94
+ <simpleType>
95
+ <annotation>
96
+ <documentation>
97
+ Enumeration of values for the actuate attribute
98
+ </documentation>
99
+ </annotation>
100
+ <restriction base="string">
101
+ <enumeration value="onLoad"/>
102
+ <enumeration value="onRequest"/>
103
+ <enumeration value="other"/>
104
+ <enumeration value="none"/>
105
+ </restriction>
106
+ </simpleType>
107
+ </attribute>
108
+
109
+ <attribute name="label" type="NCName"/>
110
+
111
+ <attribute name="from" type="NCName"/>
112
+
113
+ <attribute name="to" type="NCName"/>
114
+
115
+ <attribute name="href" type="anyURI"/>
116
+
117
+ </schema>