Debian Codegraph @

schemas/sds/1.2/scap-source-data-stream_1.2.xsd

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://scap.nist.gov/schema/scap/source/1.2" xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:cpe-dict="http://cpe.mitre.org/dictionary/2.0" xmlns:ocil="http://scap.nist.gov/schema/ocil/2.0" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://scap.nist.gov/schema/scap/source/1.2" xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:xlink="http://www.w3.org/1999/xlink" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.2">
3 <xs:annotation>
4 <xs:appinfo>
5 <schema>SCAP 1.2 Source Data Stream Collection</schema>
6 <author>Adam Halbardier, David Waltermire</author>
7 <version>1.2</version>
8 <date>2011-10-10</date>
9 </xs:appinfo>
10 </xs:annotation>
11 <xs:import namespace="http://checklists.nist.gov/xccdf/1.2" schemaLocation="../../xccdf/1.2/xccdf_1.2.xsd"/>
12 <!-- This changes the original schema. Original schema imports OVAL 5.10. -->
13 <xs:import namespace="http://oval.mitre.org/XMLSchema/oval-definitions-5" schemaLocation="../../oval/5.11.1/oval-definitions-schema.xsd"/>
14 <xs:import namespace="http://cpe.mitre.org/dictionary/2.0" schemaLocation="cpe-dictionary_2.3.xsd"/>
15 <xs:import namespace="http://scap.nist.gov/schema/ocil/2.0" schemaLocation="../../ocil/2.0/ocil-2.0.xsd"/>
16 <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="../../common/xmldsig-core-schema.xsd"/>
17 <xs:import namespace="urn:oasis:names:tc:entity:xmlns:xml:catalog" schemaLocation="../../common/catalog.xsd"/>
18 <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="../../common/xlink.xsd"/>
19 <xs:element name="data-stream-collection">
20 <xs:annotation>
21 <xs:documentation>Holds a collection of data streams and components.</xs:documentation>
22 </xs:annotation>
23 <xs:complexType>
24 <xs:sequence>
25 <xs:element maxOccurs="unbounded" ref="ds:data-stream"/>
26 <xs:element maxOccurs="unbounded" ref="ds:component"/>
27 <xs:element maxOccurs="unbounded" minOccurs="0" ref="ds:extended-component"/>
28 <xs:element maxOccurs="unbounded" minOccurs="0" ref="dsig:Signature">
29 <xs:annotation>
30 <xs:documentation>A digital signature of a data stream.</xs:documentation>
31 </xs:annotation>
32 </xs:element>
33 </xs:sequence>
34 <xs:attribute name="id" use="required">
35 <xs:annotation>
36 <xs:documentation>This MUST be a globally unique ID.</xs:documentation>
37 </xs:annotation>
38 <xs:simpleType>
39 <xs:restriction base="xs:ID">
40 <xs:pattern value="scap_[^_]+_collection_.+"/>
41 </xs:restriction>
42 </xs:simpleType>
43 </xs:attribute>
44 <xs:attribute name="schematron-version" type="xs:token" use="required">
45 <xs:annotation>
46 <xs:documentation>The version of the requirements Schematron ruleset to which the instance
47 conforms.</xs:documentation>
48 </xs:annotation>
49 </xs:attribute>
50 </xs:complexType>
51 </xs:element>
52 <xs:element name="data-stream">
53 <xs:annotation>
54 <xs:documentation>An SCAP data stream containing pointers to all of the components composing the data
55 stream.</xs:documentation>
56 </xs:annotation>
57 <xs:complexType>
58 <xs:sequence>
59 <xs:element name="dictionaries" type="ds:refListType" minOccurs="0">
60 <xs:annotation>
61 <xs:documentation>Holds pointers to dictionary components.</xs:documentation>
62 </xs:annotation>
63 </xs:element>
64 <xs:element name="checklists" type="ds:refListType" minOccurs="0">
65 <xs:annotation>
66 <xs:documentation>Holds pointers to checklist components.</xs:documentation>
67 </xs:annotation>
68 </xs:element>
69 <xs:element name="checks" type="ds:refListType">
70 <xs:annotation>
71 <xs:documentation>Holds pointers to check components.</xs:documentation>
72 </xs:annotation>
73 </xs:element>
74 <xs:element minOccurs="0" name="extended-components" type="ds:refListType">
75 <xs:annotation>
76 <xs:documentation>Holds pointers to non-standard SCAP components captured as extended-component
77 elements.</xs:documentation>
78 </xs:annotation>
79 </xs:element>
80 </xs:sequence>
81 <xs:attribute name="id" use="required">
82 <xs:annotation>
83 <xs:documentation>This MUST be a globally unique ID.</xs:documentation>
84 </xs:annotation>
85 <xs:simpleType>
86 <xs:restriction base="xs:ID">
87 <xs:pattern value="scap_[^_]+_datastream_.+"/>
88 </xs:restriction>
89 </xs:simpleType>
90 </xs:attribute>
91 <xs:attribute name="use-case" use="required">
92 <xs:annotation>
93 <xs:documentation>The SCAP capability being expressed by this data stream. The type is expressed to allow for
94 future use of this schema while indicating the currently acceptable values.</xs:documentation>
95 </xs:annotation>
96 <xs:simpleType>
97 <xs:union memberTypes="ds:useCaseType xs:token"/>
98 </xs:simpleType>
99 </xs:attribute>
100 <xs:attribute name="scap-version" use="required">
101 <xs:annotation>
102 <xs:documentation>The version of SCAP expressed by this data stream. The type is expressed to allow for future
103 use of this schema while indicating the currently acceptable values.</xs:documentation>
104 </xs:annotation>
105 <xs:simpleType>
106 <xs:union memberTypes="ds:scapVersionType xs:token"/>
107 </xs:simpleType>
108 </xs:attribute>
109 <xs:attribute name="timestamp" type="xs:dateTime">
110 <xs:annotation>
111 <xs:documentation>The time when the data stream was created or last modified.</xs:documentation>
112 </xs:annotation>
113 </xs:attribute>
114 </xs:complexType>
115 </xs:element>
116 <xs:element name="component">
117 <xs:annotation>
118 <xs:documentation>A component that is used by an SCAP data stream.</xs:documentation>
119 </xs:annotation>
120 <xs:complexType>
121 <xs:choice>
122 <xs:element ref="xccdf:Benchmark"/>
123 <xs:element ref="oval:oval_definitions"/>
124 <xs:element ref="ocil:ocil"/>
125 <xs:element ref="cpe-dict:cpe-list"/>
126 <xs:element ref="xccdf:Tailoring"/>
127 </xs:choice>
128 <xs:attribute name="id" use="required">
129 <xs:annotation>
130 <xs:documentation>This MUST be a globally unique ID.</xs:documentation>
131 </xs:annotation>
132 <xs:simpleType>
133 <xs:restriction base="xs:ID">
134 <xs:pattern value="scap_[^_]+_comp_.+"/>
135 </xs:restriction>
136 </xs:simpleType>
137 </xs:attribute>
138 <xs:attribute name="timestamp" type="xs:dateTime" use="required">
139 <xs:annotation>
140 <xs:documentation>The time when the component was created or last modified.</xs:documentation>
141 </xs:annotation>
142 </xs:attribute>
143 </xs:complexType>
144 <xs:unique name="cpeDictionaryUnique">
145 <xs:selector xpath="cpe-dict:cpe-list/cpe-dict:cpe-item"/>
146 <xs:field xpath="@name"/>
147 </xs:unique>
148 </xs:element>
149 <xs:element name="extended-component">
150 <xs:annotation>
151 <xs:documentation>A component that holds non-standard SCAP content.</xs:documentation>
152 </xs:annotation>
153 <xs:complexType>
154 <xs:sequence>
155 <xs:any namespace="##other" processContents="lax"/>
156 </xs:sequence>
157 <xs:attribute name="id" use="required">
158 <xs:annotation>
159 <xs:documentation>This MUST be a globally unique ID.</xs:documentation>
160 </xs:annotation>
161 <xs:simpleType>
162 <xs:restriction base="xs:ID">
163 <xs:pattern value="scap_[^_]+_ecomp_.+"/>
164 </xs:restriction>
165 </xs:simpleType>
166 </xs:attribute>
167 <xs:attribute name="timestamp" type="xs:dateTime" use="required">
168 <xs:annotation>
169 <xs:documentation>The time when the component was created or last modified.</xs:documentation>
170 </xs:annotation>
171 </xs:attribute>
172 </xs:complexType>
173 </xs:element>
174 <xs:element name="component-ref">
175 <xs:annotation>
176 <xs:documentation>An XLink element that points to a component.</xs:documentation>
177 </xs:annotation>
178 <xs:complexType>
179 <xs:sequence>
180 <xs:element minOccurs="0" ref="cat:catalog"/>
181 </xs:sequence>
182 <xs:attribute name="id" use="required">
183 <xs:annotation>
184 <xs:documentation>This MUST be a globally unique ID.</xs:documentation>
185 </xs:annotation>
186 <xs:simpleType>
187 <xs:restriction base="xs:ID">
188 <xs:pattern value="scap_[^_]+_cref_.+"/>
189 </xs:restriction>
190 </xs:simpleType>
191 </xs:attribute>
192 <xs:attribute fixed="simple" ref="xlink:type"/>
193 <xs:attribute use="required" ref="xlink:href"/>
194 </xs:complexType>
195 </xs:element>
196 <xs:simpleType name="useCaseType">
197 <xs:restriction base="xs:token">
198 <xs:enumeration value="CONFIGURATION"/>
199 <xs:enumeration value="VULNERABILITY"/>
200 <xs:enumeration value="INVENTORY"/>
201 <xs:enumeration value="OTHER"/>
202 </xs:restriction>
203 </xs:simpleType>
204 <xs:simpleType name="scapVersionType">
205 <xs:restriction base="xs:token">
206 <xs:enumeration value="1.0"/>
207 <xs:enumeration value="1.1"/>
208 <xs:enumeration value="1.2"/>
209 </xs:restriction>
210 </xs:simpleType>
211 <xs:complexType name="contentSourceType">
212 <xs:attribute name="href" type="xs:anyURI" use="required"/>
213 </xs:complexType>
214 <xs:complexType name="refListType">
215 <xs:sequence>
216 <xs:element maxOccurs="unbounded" ref="ds:component-ref"/>
217 </xs:sequence>
218 </xs:complexType>
219 </xs:schema>