Debian Codegraph @

schemas/xccdf/1.1/xccdfp-1.1.xsd

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Document : xccdfp-1.1.xsd
4 Created on : 25 January 2006
5 Last Updated on : 17 April 2006
6 Author : Neal Ziring
7 Description : see annotations below
8
9 ChangeLog:
10
11 Changes in 0.1
12 - initial version, first cut
13
14 Changes in 0.2
15 - first full version
16
17 Changes in 0.3
18 - revised logical tests
19
20 Changes in 0.4
21 - allowed for pre-defined Fact names
22
23 Changes in 1.1
24 - major simplification, removed lots of expressive
25 power (string and numeric facts)
26 - lots of typo fixes and stuff due to comments from
27 Ian Crawford
28
29
30 -->
31 <xsd:schema
32 targetNamespace="http://checklists.nist.gov/xccdf-p/1.1"
33 elementFormDefault="qualified" attributeFormDefault="unqualified"
34 xmlns:cdfp="http://checklists.nist.gov/xccdf-p/1.1"
35 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
36 xmlns:xml="http://www.w3.org/XML/1998/namespace">
37
38 <xsd:annotation>
39 <xsd:documentation>
40 This is an XML Schema for defining information
41 structure about IT platforms, mainly for use with
42 the eXtensible Common Checklist Description Format
43 (XCCDF). This version of the XCCDF Platform
44 Specification (XCCDF-P) is designed to be used
45 with XCCDF 1.0 or 1.1, and may also be used
46 with other XML data formats that need to describe
47 aspects of IT product and system platforms.
48
49 This specification was written by Neal Ziring, based
50 on ideas from the DISA FSO VMS/Gold Disk team, from
51 David Waltermire and David Proulx, and from Drew
52 Buttner.
53 <version date="25 January 2006">1.1.0.0</version>
54 </xsd:documentation>
55 </xsd:annotation>
56
57 <!-- *************************************************************** -->
58 <!-- External Schemas * -->
59 <!-- *************************************************************** -->
60 <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
61 schemaLocation="../../common/xml.xsd">
62 <xsd:annotation>
63 <xsd:documentation xml:lang="en">
64 Import the XML namespace schema so that we can use
65 the xml: attribute groups (particularly xml:lang).
66 </xsd:documentation>
67 </xsd:annotation>
68 </xsd:import>
69
70 <!-- *************************************************************** -->
71 <!-- Top-level Object Elements * -->
72 <!-- *************************************************************** -->
73
74 <xsd:element name="Platform-Specification">
75 <xsd:annotation>
76 <xsd:documentation xml:lang="en">
77 This element can act as a top-level container for the
78 Fact definitions and Platform definitions that make up
79 a full XCCDF-P specification. It should be used
80 when a XCCDF-P spec is being distributed as a
81 standalone document, or included in an XCCDF 1.1
82 specification.
83
84 This element schema used to include a keyref for
85 Fact names, but it has been removed to allow for
86 pre-defined Fact dictionaries.
87 </xsd:documentation>
88 </xsd:annotation>
89 <xsd:complexType>
90 <xsd:sequence>
91 <xsd:element ref="cdfp:Fact"
92 minOccurs="0" maxOccurs="unbounded"/>
93 <xsd:element ref="cdfp:Platform"
94 minOccurs="0" maxOccurs="unbounded"/>
95 </xsd:sequence>
96 </xsd:complexType>
97
98 <xsd:key name="factURIKey">
99 <xsd:selector xpath="./cdfp:Fact"/>
100 <xsd:field xpath="@name"/>
101 </xsd:key>
102 </xsd:element>
103
104 <xsd:element name="Fact">
105 <xsd:annotation>
106 <xsd:documentation xml:lang="en">
107 This element denotes a single named Fact. Every fact
108 has the following:
109 - name, a URI, which must be a unique key
110 - title, arbitrary text with xml:lang, optional
111 - remark, arbitrary text with xml:lang, optional
112 - check, XML content, optional
113 </xsd:documentation>
114 </xsd:annotation>
115 <xsd:complexType>
116 <xsd:sequence>
117 <xsd:element name="title" type="cdfp:textType"
118 minOccurs="0" maxOccurs="unbounded"/>
119 <xsd:element name="remark" type="cdfp:textType"
120 minOccurs="0" maxOccurs="unbounded"/>
121 <xsd:element name="check" type="cdfp:checkType"
122 minOccurs="0" maxOccurs="unbounded"/>
123 </xsd:sequence>
124 <xsd:attribute name="name" type="xsd:anyURI"
125 use="required"/>
126 </xsd:complexType>
127 <xsd:unique name="factCheckSystemKey">
128 <xsd:selector xpath="./cdfp:check"/>
129 <xsd:field xpath="@system"/>
130 </xsd:unique>
131 </xsd:element>
132
133 <xsd:element name="Platform">
134 <xsd:annotation>
135 <xsd:documentation xml:lang="en">
136 This element denotes a single Platform definition.
137 A Platform definition represents the qualifications
138 an IT asset or target must have to be considered an
139 instance of a particular Platform. A Platform has
140 the following:
141 - id, a locally unique id
142 - name, a URI, which must be a unique key
143 - title, arbitrary text with xml:lang, optional
144 - remark, arbitrary text with xml:lang, optional
145 - definition ref, either a fact ref or a logical
146 test (boolean combination of fact refs)
147 </xsd:documentation>
148 </xsd:annotation>
149 <xsd:complexType>
150 <xsd:sequence>
151 <xsd:element name="title" type="cdfp:textType"
152 minOccurs="0" maxOccurs="unbounded"/>
153 <xsd:element name="remark" type="cdfp:textType"
154 minOccurs="0" maxOccurs="unbounded"/>
155 <xsd:choice minOccurs="1" maxOccurs="1">
156 <xsd:element name="fact-ref" type="cdfp:factRefType"
157 minOccurs="1" maxOccurs="1"/>
158 <xsd:element name="logical-test" type="cdfp:logicTestType"
159 minOccurs="1" maxOccurs="1"/>
160 </xsd:choice>
161 </xsd:sequence>
162 <xsd:attribute name="name" type="xsd:anyURI"
163 use="optional"/>
164 <xsd:attribute name="id" type="xsd:NCName"
165 use="required"/>
166 </xsd:complexType>
167 </xsd:element>
168
169 <!-- *************************************************************** -->
170 <!-- Supporting Element Types * -->
171 <!-- *************************************************************** -->
172
173 <xsd:complexType name="factRefType">
174 <xsd:annotation>
175 <xsd:documentation xml:lang="en">
176 Type for a reference to Fact; the reference
177 is always by name. This is the type for the
178 element fact-ref, which can appear in a Platform
179 definition or in a logical-test in a Platform
180 definition.
181 </xsd:documentation>
182 </xsd:annotation>
183 <xsd:attribute name="name" type="xsd:anyURI"
184 use="required"/>
185 </xsd:complexType>
186
187
188 <!-- logicTestType -->
189 <xsd:complexType name="logicTestType">
190 <xsd:annotation>
191 <xsd:documentation xml:lang="en">
192 Type for a test against several Facts; the content
193 is one or more fact-refs and nested logical-tests.
194 Allowed operators are AND and OR.
195 The negate attribute, if set, makes the test
196 its logical inverse (so you get NAND and NOR).
197 Note that the output of a logical-test is always
198 TRUE or FALSE, Unknowns map to FALSE.
199 </xsd:documentation>
200 </xsd:annotation>
201 <xsd:choice minOccurs="1" maxOccurs="unbounded">
202 <xsd:element name="fact-ref" type="cdfp:factRefType"
203 minOccurs="1" maxOccurs="1"/>
204 <xsd:element name="logical-test" type="cdfp:logicTestType"
205 minOccurs="1" maxOccurs="1"/>
206 </xsd:choice>
207 <xsd:attribute name="operator" use="required"
208 type="cdfp:logicOperatorEnumType"/>
209 <xsd:attribute name="negate" use="optional"
210 type="xsd:boolean" default="0"/>
211 </xsd:complexType>
212
213
214 <xsd:complexType name="checkType">
215 <xsd:annotation>
216 <xsd:documentation xml:lang="en">
217 Data type for the check element, a checking system
218 specification URI, and XML content. The check
219 element may appear inside a Fact, giving a means
220 to ascertain the value of that Fact using a
221 particular checking engine. (This checkType is
222 based on the one in XCCDF, but is somewhat simpler.
223 It does not include the notion of exporting values
224 from the scope of an XCCDF document to the checking
225 engine.)
226 </xsd:documentation>
227 </xsd:annotation>
228 <xsd:sequence>
229 <xsd:choice minOccurs="1" maxOccurs="1">
230 <xsd:element name="check-content"
231 type="cdfp:checkContentType"/>
232 <xsd:element name="check-content-ref"
233 type="cdfp:checkContentRefType"/>
234 </xsd:choice>
235 </xsd:sequence>
236 <xsd:attribute name="system" type="xsd:string" use="required"/>
237 </xsd:complexType>
238
239 <xsd:complexType name="checkContentRefType">
240 <xsd:annotation>
241 <xsd:documentation xml:lang="en">
242 Data type for the check-content-ref element, which
243 points to the code for a detached check in another file.
244 This element has no body, just a couple of attributes:
245 href and name. The name is optional, if it does not appear
246 then this reference is to the entire other document.
247 </xsd:documentation>
248 </xsd:annotation>
249 <xsd:attribute name="href" type="xsd:anyURI" use="required"/>
250 <xsd:attribute name="name" type="xsd:string"/>
251 </xsd:complexType>
252
253 <xsd:complexType name="checkContentType" mixed="true">
254 <xsd:annotation>
255 <xsd:documentation xml:lang="en">
256 Data type for the check-content element, which holds
257 the actual code of an enveloped check in some other
258 (non-XCCDF-P) language. This element can hold almost
259 anything. The content is not meaningful as XCCDF-P,
260 though tools may process it or hand it off to other
261 tools.
262 </xsd:documentation>
263 </xsd:annotation>
264 <xsd:choice minOccurs="0" maxOccurs="unbounded">
265 <xsd:any namespace="##other" processContents="skip"/>
266 </xsd:choice>
267 </xsd:complexType>
268
269
270 <!-- *************************************************************** -->
271 <!-- Supporting Simple Types * -->
272 <!-- *************************************************************** -->
273
274 <xsd:simpleType name="logicOperatorEnumType">
275 <xsd:annotation>
276 <xsd:documentation xml:lang="en">
277 Allowed operators for logic tests: we only
278 have two, AND and OR. They're capitalized
279 for consistency with usage in OVAL v4.
280 </xsd:documentation>
281 </xsd:annotation>
282 <xsd:restriction base="xsd:string">
283 <xsd:enumeration value="OR" />
284 <xsd:enumeration value="AND" />
285 </xsd:restriction>
286 </xsd:simpleType>
287
288 <xsd:complexType name="textType">
289 <xsd:annotation>
290 <xsd:documentation xml:lang="en">
291 Type for a string with an xml:lang attribute.
292 </xsd:documentation>
293 </xsd:annotation>
294 <xsd:simpleContent>
295 <xsd:extension base="xsd:string">
296 <xsd:attribute ref="xml:lang"/>
297 </xsd:extension>
298 </xsd:simpleContent>
299 </xsd:complexType>
300
301 </xsd:schema>