stix_schema_spy 1.0 → 1.1

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 (175) hide show
  1. checksums.yaml +8 -8
  2. data/config/1.1/stix/cybox/objects/Win_Hook_Object.xsd +1 -1
  3. data/config/1.1.1/stix/campaign.xsd +220 -0
  4. data/config/1.1.1/stix/course_of_action.xsd +191 -0
  5. data/config/1.1.1/stix/cybox/cybox_common.xsd +2700 -0
  6. data/config/1.1.1/stix/cybox/cybox_core.xsd +1145 -0
  7. data/config/1.1.1/stix/cybox/cybox_default_vocabularies.xsd +5180 -0
  8. data/config/1.1.1/stix/cybox/extensions/location/ciq_address_3.0.xsd +27 -0
  9. data/config/1.1.1/stix/cybox/extensions/platform/cpe2.3.xsd +34 -0
  10. data/config/1.1.1/stix/cybox/external/cpe_2.3/cpe-language_2.3.xsd +234 -0
  11. data/config/1.1.1/stix/cybox/external/cpe_2.3/cpe-naming_2.3.xsd +45 -0
  12. data/config/1.1.1/stix/cybox/external/cpe_2.3/xml.xsd +145 -0
  13. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/CommonTypes.xsd +104 -0
  14. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xAL-types.xsd +511 -0
  15. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xAL.xsd +672 -0
  16. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xNAL-types.xsd +36 -0
  17. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xNAL.xsd +126 -0
  18. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xNL-types.xsd +222 -0
  19. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xNL.xsd +284 -0
  20. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xPIL-types.xsd +854 -0
  21. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xPIL.xsd +1621 -0
  22. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xlink-2003-12-31.xsd +90 -0
  23. data/config/1.1.1/stix/cybox/objects/API_Object.xsd +55 -0
  24. data/config/1.1.1/stix/cybox/objects/ARP_Cache_Object.xsd +98 -0
  25. data/config/1.1.1/stix/cybox/objects/AS_Object.xsd +50 -0
  26. data/config/1.1.1/stix/cybox/objects/Account_Object.xsd +501 -0
  27. data/config/1.1.1/stix/cybox/objects/Address_Object.xsd +127 -0
  28. data/config/1.1.1/stix/cybox/objects/Archive_File_Object.xsd +134 -0
  29. data/config/1.1.1/stix/cybox/objects/Artifact_Object.xsd +212 -0
  30. data/config/1.1.1/stix/cybox/objects/Code_Object.xsd +417 -0
  31. data/config/1.1.1/stix/cybox/objects/Custom_Object.xsd +42 -0
  32. data/config/1.1.1/stix/cybox/objects/DNS_Cache_Object.xsd +53 -0
  33. data/config/1.1.1/stix/cybox/objects/DNS_Query_Object.xsd +164 -0
  34. data/config/1.1.1/stix/cybox/objects/DNS_Record_Object.xsd +92 -0
  35. data/config/1.1.1/stix/cybox/objects/Device_Object.xsd +65 -0
  36. data/config/1.1.1/stix/cybox/objects/Disk_Object.xsd +117 -0
  37. data/config/1.1.1/stix/cybox/objects/Disk_Partition_Object.xsd +199 -0
  38. data/config/1.1.1/stix/cybox/objects/Domain_Name_Object.xsd +57 -0
  39. data/config/1.1.1/stix/cybox/objects/Email_Message_Object.xsd +278 -0
  40. data/config/1.1.1/stix/cybox/objects/File_Object.xsd +397 -0
  41. data/config/1.1.1/stix/cybox/objects/GUI_Dialogbox_Object.xsd +41 -0
  42. data/config/1.1.1/stix/cybox/objects/GUI_Object.xsd +40 -0
  43. data/config/1.1.1/stix/cybox/objects/GUI_Window_Object.xsd +46 -0
  44. data/config/1.1.1/stix/cybox/objects/HTTP_Session_Object.xsd +633 -0
  45. data/config/1.1.1/stix/cybox/objects/Hostname_Object.xsd +45 -0
  46. data/config/1.1.1/stix/cybox/objects/Image_File_Object.xsd +124 -0
  47. data/config/1.1.1/stix/cybox/objects/Library_Object.xsd +114 -0
  48. data/config/1.1.1/stix/cybox/objects/Link_Object.xsd +36 -0
  49. data/config/1.1.1/stix/cybox/objects/Linux_Package_Object.xsd +75 -0
  50. data/config/1.1.1/stix/cybox/objects/Memory_Object.xsd +141 -0
  51. data/config/1.1.1/stix/cybox/objects/Mutex_Object.xsd +40 -0
  52. data/config/1.1.1/stix/cybox/objects/Network_Connection_Object.xsd +540 -0
  53. data/config/1.1.1/stix/cybox/objects/Network_Flow_Object.xsd +1559 -0
  54. data/config/1.1.1/stix/cybox/objects/Network_Packet_Object.xsd +2934 -0
  55. data/config/1.1.1/stix/cybox/objects/Network_Route_Entry_Object.xsd +155 -0
  56. data/config/1.1.1/stix/cybox/objects/Network_Route_Object.xsd +93 -0
  57. data/config/1.1.1/stix/cybox/objects/Network_Socket_Object.xsd +529 -0
  58. data/config/1.1.1/stix/cybox/objects/Network_Subnet_Object.xsd +64 -0
  59. data/config/1.1.1/stix/cybox/objects/PDF_File_Object.xsd +595 -0
  60. data/config/1.1.1/stix/cybox/objects/Pipe_Object.xsd +40 -0
  61. data/config/1.1.1/stix/cybox/objects/Port_Object.xsd +40 -0
  62. data/config/1.1.1/stix/cybox/objects/Process_Object.xsd +199 -0
  63. data/config/1.1.1/stix/cybox/objects/Product_Object.xsd +65 -0
  64. data/config/1.1.1/stix/cybox/objects/SMS_Message_Object.xsd +79 -0
  65. data/config/1.1.1/stix/cybox/objects/Semaphore_Object.xsd +50 -0
  66. data/config/1.1.1/stix/cybox/objects/Socket_Address_Object.xsd +50 -0
  67. data/config/1.1.1/stix/cybox/objects/System_Object.xsd +410 -0
  68. data/config/1.1.1/stix/cybox/objects/URI_Object.xsd +62 -0
  69. data/config/1.1.1/stix/cybox/objects/URL_History_Object.xsd +104 -0
  70. data/config/1.1.1/stix/cybox/objects/Unix_File_Object.xsd +164 -0
  71. data/config/1.1.1/stix/cybox/objects/Unix_Network_Route_Entry_Object.xsd +56 -0
  72. data/config/1.1.1/stix/cybox/objects/Unix_Pipe_Object.xsd +36 -0
  73. data/config/1.1.1/stix/cybox/objects/Unix_Process_Object.xsd +143 -0
  74. data/config/1.1.1/stix/cybox/objects/Unix_User_Account_Object.xsd +78 -0
  75. data/config/1.1.1/stix/cybox/objects/Unix_Volume_Object.xsd +41 -0
  76. data/config/1.1.1/stix/cybox/objects/User_Account_Object.xsd +110 -0
  77. data/config/1.1.1/stix/cybox/objects/User_Session_Object.xsd +60 -0
  78. data/config/1.1.1/stix/cybox/objects/Volume_Object.xsd +235 -0
  79. data/config/1.1.1/stix/cybox/objects/Whois_Object.xsd +430 -0
  80. data/config/1.1.1/stix/cybox/objects/Win_Computer_Account_Object.xsd +135 -0
  81. data/config/1.1.1/stix/cybox/objects/Win_Critical_Section_Object.xsd +40 -0
  82. data/config/1.1.1/stix/cybox/objects/Win_Driver_Object.xsd +270 -0
  83. data/config/1.1.1/stix/cybox/objects/Win_Event_Log_Object.xsd +137 -0
  84. data/config/1.1.1/stix/cybox/objects/Win_Event_Object.xsd +80 -0
  85. data/config/1.1.1/stix/cybox/objects/Win_Executable_File_Object.xsd +1311 -0
  86. data/config/1.1.1/stix/cybox/objects/Win_File_Object.xsd +269 -0
  87. data/config/1.1.1/stix/cybox/objects/Win_Filemapping_Object.xsd +175 -0
  88. data/config/1.1.1/stix/cybox/objects/Win_Handle_Object.xsd +351 -0
  89. data/config/1.1.1/stix/cybox/objects/Win_Hook_Object.xsd +152 -0
  90. data/config/1.1.1/stix/cybox/objects/Win_Kernel_Hook_Object.xsd +109 -0
  91. data/config/1.1.1/stix/cybox/objects/Win_Kernel_Object.xsd +128 -0
  92. data/config/1.1.1/stix/cybox/objects/Win_Mailslot_Object.xsd +56 -0
  93. data/config/1.1.1/stix/cybox/objects/Win_Memory_Page_Region_Object.xsd +198 -0
  94. data/config/1.1.1/stix/cybox/objects/Win_Mutex_Object.xsd +42 -0
  95. data/config/1.1.1/stix/cybox/objects/Win_Network_Route_Entry_Object.xsd +200 -0
  96. data/config/1.1.1/stix/cybox/objects/Win_Network_Share_Object.xsd +205 -0
  97. data/config/1.1.1/stix/cybox/objects/Win_Pipe_Object.xsd +73 -0
  98. data/config/1.1.1/stix/cybox/objects/Win_Prefetch_Object.xsd +113 -0
  99. data/config/1.1.1/stix/cybox/objects/Win_Process_Object.xsd +174 -0
  100. data/config/1.1.1/stix/cybox/objects/Win_Registry_Key_Object.xsd +290 -0
  101. data/config/1.1.1/stix/cybox/objects/Win_Semaphore_Object.xsd +42 -0
  102. data/config/1.1.1/stix/cybox/objects/Win_Service_Object.xsd +287 -0
  103. data/config/1.1.1/stix/cybox/objects/Win_System_Object.xsd +126 -0
  104. data/config/1.1.1/stix/cybox/objects/Win_System_Restore_Object.xsd +207 -0
  105. data/config/1.1.1/stix/cybox/objects/Win_Task_Object.xsd +755 -0
  106. data/config/1.1.1/stix/cybox/objects/Win_Thread_Object.xsd +146 -0
  107. data/config/1.1.1/stix/cybox/objects/Win_User_Account_Object.xsd +73 -0
  108. data/config/1.1.1/stix/cybox/objects/Win_Volume_Object.xsd +161 -0
  109. data/config/1.1.1/stix/cybox/objects/Win_Waitable_Timer_Object.xsd +90 -0
  110. data/config/1.1.1/stix/cybox/objects/X509_Certificate_Object.xsd +275 -0
  111. data/config/1.1.1/stix/data_marking.xsd +97 -0
  112. data/config/1.1.1/stix/exploit_target.xsd +324 -0
  113. data/config/1.1.1/stix/extensions/address/ciq_3.0_address.xsd +27 -0
  114. data/config/1.1.1/stix/extensions/attack_pattern/capec_2.7_attack_pattern.xsd +31 -0
  115. data/config/1.1.1/stix/extensions/identity/ciq_3.0_identity.xsd +113 -0
  116. data/config/1.1.1/stix/extensions/malware/maec_4.1_malware.xsd +31 -0
  117. data/config/1.1.1/stix/extensions/marking/simple_marking.xsd +31 -0
  118. data/config/1.1.1/stix/extensions/marking/terms_of_use_marking.xsd +31 -0
  119. data/config/1.1.1/stix/extensions/marking/tlp_marking.xsd +40 -0
  120. data/config/1.1.1/stix/extensions/structured_coa/generic_structured_coa.xsd +46 -0
  121. data/config/1.1.1/stix/extensions/test_mechanism/generic_test_mechanism.xsd +46 -0
  122. data/config/1.1.1/stix/extensions/test_mechanism/open_ioc_2010_test_mechanism.xsd +32 -0
  123. data/config/1.1.1/stix/extensions/test_mechanism/oval_5.10_test_mechanism.xsd +37 -0
  124. data/config/1.1.1/stix/extensions/test_mechanism/snort_test_mechanism.xsd +56 -0
  125. data/config/1.1.1/stix/extensions/test_mechanism/yara_test_mechanism.xsd +36 -0
  126. data/config/1.1.1/stix/extensions/vulnerability/cvrf_1.1_vulnerability.xsd +33 -0
  127. data/config/1.1.1/stix/external/capec_2.7/ap_schema_v2.7.xsd +3618 -0
  128. data/config/1.1.1/stix/external/cvrf_1.1/common.xsd +176 -0
  129. data/config/1.1.1/stix/external/cvrf_1.1/cpe-language_2.2a.xsd +182 -0
  130. data/config/1.1.1/stix/external/cvrf_1.1/cvrf.xsd +487 -0
  131. data/config/1.1.1/stix/external/cvrf_1.1/cvss-v2_0.9.xsd +415 -0
  132. data/config/1.1.1/stix/external/cvrf_1.1/dc.xsd +118 -0
  133. data/config/1.1.1/stix/external/cvrf_1.1/prod.xsd +292 -0
  134. data/config/1.1.1/stix/external/cvrf_1.1/scap-core_0.9.xsd +170 -0
  135. data/config/1.1.1/stix/external/cvrf_1.1/vuln.xsd +631 -0
  136. data/config/1.1.1/stix/external/cvrf_1.1/xml.xsd +287 -0
  137. data/config/1.1.1/stix/external/maec_4.1/maec_bundle_schema.xsd +1228 -0
  138. data/config/1.1.1/stix/external/maec_4.1/maec_container_schema.xsd +62 -0
  139. data/config/1.1.1/stix/external/maec_4.1/maec_default_vocabularies.xsd +5325 -0
  140. data/config/1.1.1/stix/external/maec_4.1/maec_package_schema.xsd +1095 -0
  141. data/config/1.1.1/stix/external/maec_4.1/metadataSharing.xsd +1712 -0
  142. data/config/1.1.1/stix/external/oasis_ciq_3.0/CommonTypes.xsd +104 -0
  143. data/config/1.1.1/stix/external/oasis_ciq_3.0/xAL-types.xsd +511 -0
  144. data/config/1.1.1/stix/external/oasis_ciq_3.0/xAL.xsd +672 -0
  145. data/config/1.1.1/stix/external/oasis_ciq_3.0/xNAL-types.xsd +36 -0
  146. data/config/1.1.1/stix/external/oasis_ciq_3.0/xNAL.xsd +126 -0
  147. data/config/1.1.1/stix/external/oasis_ciq_3.0/xNL-types.xsd +222 -0
  148. data/config/1.1.1/stix/external/oasis_ciq_3.0/xNL.xsd +284 -0
  149. data/config/1.1.1/stix/external/oasis_ciq_3.0/xPIL-types.xsd +854 -0
  150. data/config/1.1.1/stix/external/oasis_ciq_3.0/xPIL.xsd +1621 -0
  151. data/config/1.1.1/stix/external/oasis_ciq_3.0/xlink-2003-12-31.xsd +90 -0
  152. data/config/1.1.1/stix/external/open_ioc_2010/ioc-TR.xsd +25 -0
  153. data/config/1.1.1/stix/external/open_ioc_2010/ioc.xsd +105 -0
  154. data/config/1.1.1/stix/external/oval_5.10/oval-common-schema.xsd +781 -0
  155. data/config/1.1.1/stix/external/oval_5.10/oval-definitions-schema.xsd +1608 -0
  156. data/config/1.1.1/stix/external/oval_5.10/oval-variables-schema.xsd +84 -0
  157. data/config/1.1.1/stix/external/oval_5.10/xmldsig-core-schema.xsd +309 -0
  158. data/config/1.1.1/stix/incident.xsd +762 -0
  159. data/config/1.1.1/stix/indicator.xsd +368 -0
  160. data/config/1.1.1/stix/stix_common.xsd +923 -0
  161. data/config/1.1.1/stix/stix_core.xsd +253 -0
  162. data/config/1.1.1/stix/stix_default_vocabularies.xsd +2081 -0
  163. data/config/1.1.1/stix/threat_actor.xsd +182 -0
  164. data/config/1.1.1/stix/ttp.xsd +430 -0
  165. data/config/1.1.1/uber_schema.xsd +149 -0
  166. data/lib/stix_schema_spy/models/attribute.rb +1 -1
  167. data/lib/stix_schema_spy/models/element.rb +2 -9
  168. data/lib/stix_schema_spy/models/external_type.rb +29 -0
  169. data/lib/stix_schema_spy/models/has_children.rb +9 -9
  170. data/lib/stix_schema_spy/models/node.rb +7 -6
  171. data/lib/stix_schema_spy/models/schema.rb +6 -4
  172. data/lib/stix_schema_spy/models/type.rb +44 -5
  173. data/lib/stix_schema_spy/util/tasks.rb +15 -14
  174. data/lib/stix_schema_spy/version.rb +1 -1
  175. metadata +171 -9
@@ -0,0 +1,176 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ xmlns:cvrf-common="http://www.icasi.org/CVRF/schema/common/1.1"
4
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
5
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+ id="CVRFCommonDictionary"
7
+ targetNamespace="http://www.icasi.org/CVRF/schema/common/1.1"
8
+ elementFormDefault="qualified"
9
+ attributeFormDefault="unqualified"
10
+ version="1.1">
11
+ <!-- =============================================================================== -->
12
+ <!-- ============================= SCHEMA IMPORTS =============================== -->
13
+ <!-- =============================================================================== -->
14
+ <xs:import namespace="http://purl.org/dc/elements/1.1/" schemaLocation="dc.xsd"/>
15
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
16
+ <!-- =============================================================================== -->
17
+ <!-- ============================ SCHEMA INFORMATION =============================== -->
18
+ <!-- =============================================================================== -->
19
+ <xs:annotation>
20
+ <xs:documentation xml:lang="en">This is the XML schema for the Common Vulerability Reporting Framework's common data types.</xs:documentation>
21
+ <xs:appinfo>
22
+ <dc:creator>Brian Schafer &lt;bschafer@microsoft.com&gt;</dc:creator>
23
+ <dc:contributor>Joe Clarke &lt;jclarke@cisco.com&gt;</dc:contributor>
24
+ <dc:contributor>Joe Hemmerlein &lt;Joe.Hemmerlein@microsoft.com&gt;</dc:contributor>
25
+ <dc:date>2012-05-07</dc:date>
26
+ <dc:subject>CVRF Common Data Types</dc:subject>
27
+ <version>1.1</version>
28
+ </xs:appinfo>
29
+ </xs:annotation>
30
+ <!-- =============================================================================== -->
31
+ <!-- =================================== DATA TYPES ================================ -->
32
+ <!-- =============================================================================== -->
33
+ <xs:simpleType name="nonEmptyNormalizedString">
34
+ <xs:annotation>
35
+ <xs:documentation xml:lang="en">A normalized string type that cannot be empty.</xs:documentation>
36
+ </xs:annotation>
37
+ <xs:restriction base="xs:normalizedString">
38
+ <xs:minLength value="1" />
39
+ </xs:restriction>
40
+ </xs:simpleType>
41
+ <xs:simpleType name="nonEmptyString">
42
+ <xs:annotation>
43
+ <xs:documentation xml:lang="en">A string type that cannot be empty.</xs:documentation>
44
+ </xs:annotation>
45
+ <xs:restriction base="xs:string">
46
+ <xs:minLength value="1" />
47
+ </xs:restriction>
48
+ </xs:simpleType>
49
+ <xs:complexType name="localizedString">
50
+ <xs:annotation>
51
+ <xs:documentation xml:lang="en">String type with an optional language attribute. The default language is English.</xs:documentation>
52
+ </xs:annotation>
53
+ <xs:simpleContent>
54
+ <xs:extension base="cvrf-common:nonEmptyString">
55
+ <xs:attribute ref="xml:lang" default="en">
56
+ <xs:annotation>
57
+ <xs:documentation xml:lang="en">Locale code used for the string value. The default is &quot;en&quot;.</xs:documentation>
58
+ </xs:annotation>
59
+ </xs:attribute>
60
+ </xs:extension>
61
+ </xs:simpleContent>
62
+ </xs:complexType>
63
+ <xs:complexType name="localizedNormalizedString">
64
+ <xs:annotation>
65
+ <xs:documentation xml:lang="en">Normalized string type with an optional language attribute. The default language is English. This string cannot be empty.</xs:documentation>
66
+ </xs:annotation>
67
+ <xs:simpleContent>
68
+ <xs:extension base="cvrf-common:nonEmptyNormalizedString">
69
+ <xs:attribute ref="xml:lang" default="en">
70
+ <xs:annotation>
71
+ <xs:documentation xml:lang="en">Locale code used for the string value. The default is &quot;en&quot;.</xs:documentation>
72
+ </xs:annotation>
73
+ </xs:attribute>
74
+ </xs:extension>
75
+ </xs:simpleContent>
76
+ </xs:complexType>
77
+ <xs:simpleType name="revisionNumber">
78
+ <xs:annotation>
79
+ <xs:documentation xml:lang="en">Dotted string representing the document revision</xs:documentation>
80
+ </xs:annotation>
81
+ <xs:restriction base="xs:token">
82
+ <xs:pattern value="(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*)){0,3}" />
83
+ </xs:restriction>
84
+ </xs:simpleType>
85
+ <xs:simpleType name="ReferenceTypeEnum">
86
+ <xs:annotation>
87
+ <xs:documentation xml:lang="en">Types enumerating the type of reference document</xs:documentation>
88
+ </xs:annotation>
89
+ <xs:restriction base="xs:token">
90
+ <xs:enumeration value="External">
91
+ <xs:annotation>
92
+ <xs:documentation xml:lang="en">This document is an external reference to the current vulnerability.</xs:documentation>
93
+ </xs:annotation>
94
+ </xs:enumeration>
95
+ <xs:enumeration value="Self">
96
+ <xs:annotation>
97
+ <xs:documentation xml:lang="en">This document is a reference to this same vulnerability.</xs:documentation>
98
+ </xs:annotation>
99
+ </xs:enumeration>
100
+ </xs:restriction>
101
+ </xs:simpleType>
102
+ <xs:simpleType name="PublisherEnumType">
103
+ <xs:annotation>
104
+ <xs:documentation xml:lang="en">Types enumerating the various publishers of a document.</xs:documentation>
105
+ </xs:annotation>
106
+ <xs:restriction base="xs:token">
107
+ <xs:enumeration value="Vendor">
108
+ <xs:annotation>
109
+ <xs:documentation xml:lang="en">Developers or maintainers of information system products or services.</xs:documentation>
110
+ </xs:annotation>
111
+ </xs:enumeration>
112
+ <xs:enumeration value="Discoverer">
113
+ <xs:annotation>
114
+ <xs:documentation xml:lang="en">Individuals or organizations that find vulnerabilities or security weaknesses.</xs:documentation>
115
+ </xs:annotation>
116
+ </xs:enumeration>
117
+ <xs:enumeration value="Coordinator">
118
+ <xs:annotation>
119
+ <xs:documentation xml:lang="en">Individuals or organizations that manage a single vendor's response or multiple vendors' responses to a vulnerability, a security flaw, or an incident.</xs:documentation>
120
+ </xs:annotation>
121
+ </xs:enumeration>
122
+ <xs:enumeration value="User">
123
+ <xs:annotation>
124
+ <xs:documentation xml:lang="en">Everyone using a vendor's product.</xs:documentation>
125
+ </xs:annotation>
126
+ </xs:enumeration>
127
+ <xs:enumeration value="Other">
128
+ <xs:annotation>
129
+ <xs:documentation xml:lang="en">Catchall for everyone else. Currently this includes forwarders, re-publishers, language translators and miscellaneous contributors.</xs:documentation>
130
+ </xs:annotation>
131
+ </xs:enumeration>
132
+ </xs:restriction>
133
+ </xs:simpleType>
134
+ <xs:simpleType name="NoteTypeEnumType">
135
+ <xs:annotation>
136
+ <xs:documentation xml:lang="en">Allowed type values for CVRF notes.</xs:documentation>
137
+ </xs:annotation>
138
+ <xs:restriction base="xs:token">
139
+ <xs:enumeration value="General">
140
+ <xs:annotation>
141
+ <xs:documentation xml:lang="en">A general, high-level note (Title may have more information).</xs:documentation>
142
+ </xs:annotation>
143
+ </xs:enumeration>
144
+ <xs:enumeration value="Details">
145
+ <xs:annotation>
146
+ <xs:documentation xml:lang="en">A low-level detailed discussion (Title may have more information).</xs:documentation>
147
+ </xs:annotation>
148
+ </xs:enumeration>
149
+ <xs:enumeration value="Description">
150
+ <xs:annotation>
151
+ <xs:documentation xml:lang="en">A description of something (Title may have more information).</xs:documentation>
152
+ </xs:annotation>
153
+ </xs:enumeration>
154
+ <xs:enumeration value="Summary">
155
+ <xs:annotation>
156
+ <xs:documentation xml:lang="en">A summary of something (Title may have more information).</xs:documentation>
157
+ </xs:annotation>
158
+ </xs:enumeration>
159
+ <xs:enumeration value="FAQ">
160
+ <xs:annotation>
161
+ <xs:documentation xml:lang="en">A list of frequently asked questions.</xs:documentation>
162
+ </xs:annotation>
163
+ </xs:enumeration>
164
+ <xs:enumeration value="Legal Disclaimer">
165
+ <xs:annotation>
166
+ <xs:documentation xml:lang="en">Any possible legal discussion, including constraints, surrounding the document.</xs:documentation>
167
+ </xs:annotation>
168
+ </xs:enumeration>
169
+ <xs:enumeration value="Other">
170
+ <xs:annotation>
171
+ <xs:documentation xml:lang="en">Something that doesn’t fit (Title should have more information).</xs:documentation>
172
+ </xs:annotation>
173
+ </xs:enumeration>
174
+ </xs:restriction>
175
+ </xs:simpleType>
176
+ </xs:schema>
@@ -0,0 +1,182 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:cpe="http://cpe.mitre.org/language/2.0"
4
+ xmlns:xml="http://www.w3.org/XML/1998/namespace"
5
+ xmlns:sch="http://purl.oclc.org/dsdl/schematron"
6
+ targetNamespace="http://cpe.mitre.org/language/2.0" elementFormDefault="qualified"
7
+ attributeFormDefault="unqualified" version="2.2a">
8
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
9
+ <xsd:annotation>
10
+ <xsd:documentation xml:lang="en">This XML Schema defines the CPE Language. An individual
11
+ CPE Name addresses a single part of an actual system. To identify more complex
12
+ platform types, there needs to be a way to combine different CPE Names using
13
+ logical operators. For example, there may be a need to identify a platform with a
14
+ particular operating system AND a certain application. The CPE Language exists to
15
+ satisfy this need, enabling the CPE Name for the operating system to be combined
16
+ with the CPE Name for the application. For more information, consult the CPE
17
+ Specification document.</xsd:documentation>
18
+ <xsd:appinfo>
19
+ <schema>CPE Language</schema>
20
+ <author>Neal Ziring, Andrew Buttner, David Waltermire</author>
21
+ <version>2.2</version>
22
+ <date>10/27/2008 10:00:00 AM</date>
23
+ </xsd:appinfo>
24
+ </xsd:annotation>
25
+
26
+ <!-- =============================================================================== -->
27
+ <!-- =============================================================================== -->
28
+ <!-- =============================================================================== -->
29
+ <xsd:element name="platform-specification" type="cpe:platformSpecificationType">
30
+ <xsd:annotation>
31
+ <xsd:documentation xml:lang="en">This element is the root element of a CPE
32
+ Language XML documents and therefore acts as a container for child platform
33
+ definitions.</xsd:documentation>
34
+ </xsd:annotation>
35
+ <xsd:key name="platformKey">
36
+ <xsd:selector xpath="cpe:platform"/>
37
+ <xsd:field xpath="@id"/>
38
+ </xsd:key>
39
+ </xsd:element>
40
+
41
+ <xsd:element name="platform" type="cpe:PlatformType"/>
42
+ <xsd:element name="platform-configuration" type="cpe:PlatformBaseType"/>
43
+
44
+ <xsd:element name="logical-test" type="cpe:LogicalTestType"/>
45
+
46
+ <xsd:element name="fact-ref" type="cpe:FactRefType"/>
47
+
48
+
49
+ <!-- =============================================================================== -->
50
+ <!-- =========================== PLATFORM SPECIFICATION ============================ -->
51
+ <!-- =============================================================================== -->
52
+ <xsd:complexType name="platformSpecificationType">
53
+ <xsd:sequence>
54
+ <xsd:element ref="cpe:platform" minOccurs="1"
55
+ maxOccurs="unbounded"/>
56
+ </xsd:sequence>
57
+ </xsd:complexType>
58
+
59
+ <!-- =============================================================================== -->
60
+ <!-- ================================== PLATFORM ================================= -->
61
+ <!-- =============================================================================== -->
62
+ <xsd:complexType name="PlatformBaseType">
63
+ <xsd:annotation>
64
+ <xsd:documentation xml:lang="en">The platform element represents the description
65
+ or qualifications of a particular IT platform type. The platform is defined
66
+ by the logical-test child element.</xsd:documentation>
67
+ </xsd:annotation>
68
+ <xsd:sequence>
69
+ <xsd:element name="title" type="cpe:TextType" minOccurs="0" maxOccurs="unbounded">
70
+ <xsd:annotation>
71
+ <xsd:documentation xml:lang="en">The optional title element may appear as a child
72
+ to a platform element. It provides a human-readable title for it. To support
73
+ uses intended for multiple languages, this element supports the ‘xml:lang’
74
+ attribute. At most one title element can appear for each language.</xsd:documentation>
75
+ </xsd:annotation>
76
+ </xsd:element>
77
+ <xsd:element name="remark" type="cpe:TextType" minOccurs="0" maxOccurs="unbounded">
78
+ <xsd:annotation>
79
+ <xsd:documentation xml:lang="en">The optional remark element may appear as a child
80
+ of a platform element. It provides some additional description. Zero or more
81
+ remark elements may appear. To support uses intended for multiple languages,
82
+ this element supports the ‘xml:lang’ attribute. There can be multiple
83
+ remarks for a single language.</xsd:documentation>
84
+ </xsd:annotation>
85
+ </xsd:element>
86
+ <xsd:element ref="cpe:logical-test" minOccurs="1" maxOccurs="1"/>
87
+ </xsd:sequence>
88
+ </xsd:complexType>
89
+ <xsd:complexType name="PlatformType">
90
+ <xsd:complexContent>
91
+ <xsd:extension base="cpe:PlatformBaseType">
92
+ <xsd:attribute name="id" type="xsd:anyURI" use="required">
93
+ <xsd:annotation>
94
+ <xsd:documentation xml:lang="en">The id attribute holds a locally unique
95
+ name for the platform. There is no defined format for this id, it just has
96
+ to be unique to the containing language document.</xsd:documentation>
97
+ </xsd:annotation>
98
+ </xsd:attribute>
99
+ </xsd:extension>
100
+ </xsd:complexContent>
101
+ </xsd:complexType>
102
+ <xsd:complexType name="LogicalTestType">
103
+ <xsd:annotation>
104
+ <xsd:documentation xml:lang="en">The logical-test element appears as a child of a
105
+ platform element, and may also be nested to create more complex logical
106
+ tests. The content consists of one or more elements: fact-ref, and
107
+ logical-test children are permitted. The operator to be applied, and
108
+ optional negation of the test, are given as attributes.</xsd:documentation>
109
+ </xsd:annotation>
110
+ <xsd:sequence>
111
+ <xsd:element name="logical-test" type="cpe:LogicalTestType" minOccurs="0"
112
+ maxOccurs="unbounded"/>
113
+ <xsd:element ref="cpe:fact-ref" minOccurs="0"
114
+ maxOccurs="unbounded">
115
+ <xsd:annotation>
116
+ <xsd:documentation xml:lang="en"></xsd:documentation>
117
+ </xsd:annotation>
118
+ </xsd:element>
119
+ </xsd:sequence>
120
+ <xsd:attribute name="operator" type="cpe:operatorEnumeration" use="required"/>
121
+ <xsd:attribute name="negate" type="xsd:boolean" use="required"/>
122
+ </xsd:complexType>
123
+ <xsd:complexType name="FactRefType">
124
+ <xsd:annotation>
125
+ <xsd:documentation xml:lang="en">The fact-ref element appears as a
126
+ child of a logical-test element. It is simply a reference to a CPE Name that
127
+ always evaluates to a Boolean result.</xsd:documentation>
128
+ </xsd:annotation>
129
+ <xsd:attribute name="name" type="cpe:namePattern" use="required"/>
130
+ </xsd:complexType>
131
+
132
+ <!-- =============================================================================== -->
133
+ <!-- =============================== ENUMERATIONS ================================ -->
134
+ <!-- =============================================================================== -->
135
+ <xsd:simpleType name="operatorEnumeration">
136
+ <xsd:annotation>
137
+ <xsd:documentation xml:lang="en">The OperatorEnumeration simple type defines
138
+ acceptable operators. Each operator defines how to evaluate multiple
139
+ arguments.</xsd:documentation>
140
+ </xsd:annotation>
141
+ <xsd:restriction base="xsd:string">
142
+ <xsd:enumeration value="AND"/>
143
+ <xsd:enumeration value="OR"/>
144
+ </xsd:restriction>
145
+ </xsd:simpleType>
146
+ <!-- =============================================================================== -->
147
+ <!-- ============================== SUPPORTING TYPES ============================== -->
148
+ <!-- =============================================================================== -->
149
+ <xsd:complexType name="TextType">
150
+ <xsd:annotation>
151
+ <xsd:documentation xml:lang="en">This type allows the xml:lang attribute to
152
+ associate a specific language with an element's string
153
+ content.</xsd:documentation>
154
+ </xsd:annotation>
155
+ <xsd:simpleContent>
156
+ <xsd:extension base="xsd:string">
157
+ <xsd:attribute ref="xml:lang"/>
158
+ </xsd:extension>
159
+ </xsd:simpleContent>
160
+ </xsd:complexType>
161
+ <!-- =============================================================================== -->
162
+ <!-- ================================ ID PATTERNS ================================ -->
163
+ <!-- =============================================================================== -->
164
+ <xsd:simpleType name="namePattern">
165
+ <xsd:annotation>
166
+ <xsd:documentation xml:lang="en">Define the format for acceptable CPE Names. A URN
167
+ format is used with the id starting with the word cpe followed by :/ and
168
+ then some number of individual components separated by
169
+ colons.</xsd:documentation>
170
+ </xsd:annotation>
171
+ <xsd:restriction base="xsd:anyURI">
172
+ <xsd:pattern value="[c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9\._\-~%]*){0,6}"/>
173
+ </xsd:restriction>
174
+ </xsd:simpleType>
175
+ <!-- ================================================== -->
176
+ <!-- ===== Change History -->
177
+ <!-- ================================================== -->
178
+ <!--
179
+ v2.2 - Initial working version
180
+ v2.3 - Various refactoring of types to use element refs. This enables more fine-grained reuse of this schema and allows XSD substitution to be possible.
181
+ -->
182
+ </xsd:schema>