Debian Codegraph @

schemas/xccdf/1.1-tailoring/xccdf-1.1-tailoring.xsd

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3 xmlns:cdf = "http://checklists.nist.gov/xccdf/1.1"
4 xmlns:cdf-tailoring = "http://open-scap.org/page/Xccdf-1.1-tailoring"
5 targetNamespace = "http://open-scap.org/page/Xccdf-1.1-tailoring"
6 elementFormDefault="qualified"
7 attributeFormDefault="unqualified">
8
9 <xsd:annotation>
10 <xsd:documentation xml:lang="en">
11 XCCDF 1.1.x has no support for Tailoring in external files.
12 This namespace provides such facility. Keep in mind that
13 this is an unofficial extension!
14 </xsd:documentation>
15 <xsd:appinfo>
16 <schema>XCCDF 1.1 tailoring extension</schema>
17 <author>Martin Preisler</author>
18 <version>1.1</version>
19 <date>2013-08-30</date>
20 </xsd:appinfo>
21 </xsd:annotation>
22
23 <!-- Import base XML namespace -->
24 <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="../../common/xml.xsd">
25 <xsd:annotation>
26 <xsd:documentation xml:lang="en"> Import the XML namespace because this schema uses the
27 @xml:lang and @xml:base attributes. </xsd:documentation>
28 </xsd:annotation>
29 </xsd:import>
30
31 <!-- Import XCCDF 1.1 namespace -->
32 <xsd:import namespace="http://checklists.nist.gov/xccdf/1.1" schemaLocation="../1.1/xccdf-schema.xsd">
33 <xsd:annotation>
34 <xsd:documentation xml:lang="en">
35 TODO
36 </xsd:documentation>
37 </xsd:annotation>
38 </xsd:import>
39
40 <xsd:element name="Tailoring" type="cdf-tailoring:tailoringType">
41 <xsd:annotation>
42 <xsd:documentation xml:lang="en">The &lt;xccdf:Tailoring&gt; element holds one or more
43 &lt;xccdf:Profile&gt; elements. These &lt;xccdf:Profile&gt; elements record
44 additional tailoring activities that apply to a given &lt;xccdf:Benchmark&gt;.
45 &lt;xccdf:Tailoring&gt; elements are separate from &lt;xccdf:Benchmark&gt;
46 documents, but each &lt;xccdf:Tailoring&gt; element is associated with a specific
47 &lt;xccdf:Benchmark&gt; document. By defining these tailoring actions separately
48 from the &lt;xccdf:Benchmark&gt; document to which they apply, these actions can be
49 recorded without affecting the integrity of the source itself.</xsd:documentation>
50 </xsd:annotation>
51 </xsd:element>
52
53 <xsd:simpleType name="tailoringIdType">
54 <xsd:annotation>
55 <xsd:documentation xml:lang="en"> The format required for the @id property of
56 &lt;xccdf:Tailoring&gt; elements. xccdf_N_tailoring_S, where N is a reverse-DNS
57 style namespace and S is an NCName-compatible string. </xsd:documentation>
58 </xsd:annotation>
59 <xsd:restriction base="xsd:NCName">
60 <xsd:pattern value="xccdf_[^_]+_tailoring_.+"/> <!-- TODO: Should we enforce this ID or not -->
61 </xsd:restriction>
62 </xsd:simpleType>
63
64 <xsd:complexType name="tailoringType">
65 <xsd:annotation>
66 <xsd:documentation xml:lang="en">Data type for the &lt;xccdf:Tailoring&gt; element. The
67 &lt;xccdf:Tailoring&gt; element allows named tailorings (i.e., &lt;xccdf:Profile&gt;
68 elements) of an &lt;xccdf:Benchmark&gt; to be defined separately from the
69 &lt;xccdf:Benchmark&gt; itself. The &lt;xccdf:Profile&gt; elements in an
70 &lt;xccdf:Tailoring&gt; element can be used in two ways: First, an organization
71 might wish to pre-define a set of tailoring actions to be applied on top of or
72 instead of the tailoring performed by an &lt;xccdf:Benchmark&gt; element's
73 &lt;xccdf:Profile&gt; elements. Second, an &lt;xccdf:Tailoring&gt; element can be
74 used to record manual tailoring actions performed during the course of an
75 assessment. </xsd:documentation>
76 </xsd:annotation>
77 <xsd:sequence>
78 <xsd:element name="benchmark" minOccurs="0" maxOccurs="1"
79 type="cdf-tailoring:tailoringBenchmarkReferenceType">
80 <xsd:annotation>
81 <xsd:documentation xml:lang="en">Identifies the &lt;xccdf:Benchmark&gt; to which
82 this tailoring applies. A &lt;xccdf:Tailoring&gt; document is only
83 applicable to a single &lt;xccdf:Benchmark&gt;. Note, however, that this is
84 a purely informative field. </xsd:documentation>
85 </xsd:annotation>
86 </xsd:element>
87 <xsd:element ref="cdf:status" minOccurs="0" maxOccurs="unbounded">
88 <xsd:annotation>
89 <xsd:documentation xml:lang="en">Status of the tailoring and date at which it
90 attained that status. Authors may use this element to record the maturity or
91 consensus level of an &lt;xccdf:Tailoring&gt; element.</xsd:documentation>
92 </xsd:annotation>
93 </xsd:element>
94 <xsd:element name="version" minOccurs="1" maxOccurs="1" type="cdf-tailoring:tailoringVersionType">
95 <xsd:annotation>
96 <xsd:documentation xml:lang="en">The version of this &lt;xccdf:Tailoring&gt;
97 element, with a required @time attribute that records when the
98 &lt;xccdf:Tailoring&gt; element was created. This timestamp is necessary
99 because, under some circumstances, a copy of an &lt;xccdf:Tailoring&gt;
100 document might be automatically generated. Without the version and
101 timestamp, tracking of these automatically created &lt;xccdf:Tailoring&gt;
102 documents could become problematic. </xsd:documentation>
103 </xsd:annotation>
104 </xsd:element>
105 <xsd:element name="metadata" type="cdf:metadataType" minOccurs="0" maxOccurs="unbounded">
106 <xsd:annotation>
107 <xsd:documentation xml:lang="en">XML metadata for the &lt;xccdf:Tailoring&gt;
108 element. </xsd:documentation>
109 </xsd:annotation>
110 </xsd:element>
111 <xsd:element ref="cdf:Profile" minOccurs="1" maxOccurs="unbounded">
112 <xsd:annotation>
113 <xsd:documentation xml:lang="en">&lt;xccdf:Profile&gt; elements that reference
114 and customize sets of items in an &lt;xccdf:Benchmark&gt;.
115 </xsd:documentation>
116 </xsd:annotation>
117 </xsd:element>
118 </xsd:sequence>
119 <xsd:attribute name="id" type="cdf-tailoring:tailoringIdType" use="required">
120 <xsd:annotation>
121 <xsd:documentation xml:lang="en">Unique identifier for this
122 element.</xsd:documentation>
123 </xsd:annotation>
124 </xsd:attribute>
125 </xsd:complexType>
126
127 <xsd:complexType name="benchmarkReferenceType">
128 <xsd:annotation>
129 <xsd:documentation xml:lang="en">Type for a reference to the &lt;xccdf:Benchmark&gt;
130 document. </xsd:documentation>
131 </xsd:annotation>
132 <xsd:attribute name="href" type="xsd:anyURI" use="required">
133 <xsd:annotation>
134 <xsd:documentation xml:lang="en">The URI of the &lt;xccdf:Benchmark&gt; document.
135 </xsd:documentation>
136 </xsd:annotation>
137 </xsd:attribute>
138 <xsd:attribute name="id" type="xsd:NCName" use="optional">
139 <xsd:annotation>
140 <xsd:documentation xml:lang="en">The value of that &lt;xccdf:Benchmark&gt; element's
141 @id attribute. </xsd:documentation>
142 </xsd:annotation>
143 </xsd:attribute>
144 </xsd:complexType>
145
146 <xsd:complexType name="tailoringBenchmarkReferenceType">
147 <xsd:annotation>
148 <xsd:documentation xml:lang="en">Identifies the &lt;xccdf:Benchmark&gt; to which an
149 &lt;xccdf:Tailoring&gt; element applies. </xsd:documentation>
150 </xsd:annotation>
151 <xsd:complexContent>
152 <xsd:extension base="cdf-tailoring:benchmarkReferenceType">
153 <xsd:attribute name="version" type="xsd:string" use="optional">
154 <xsd:annotation>
155 <xsd:documentation xml:lang="en">Identifies the version of the referenced
156 &lt;xccdf:Benchmark&gt;. </xsd:documentation>
157 </xsd:annotation>
158 </xsd:attribute>
159 </xsd:extension>
160 </xsd:complexContent>
161 </xsd:complexType>
162
163 <xsd:complexType name="tailoringVersionType">
164 <xsd:annotation>
165 <xsd:documentation xml:lang="en">Type for version information about an
166 &lt;xccdf:Tailoring&gt; element. </xsd:documentation>
167 </xsd:annotation>
168 <xsd:simpleContent>
169 <xsd:extension base="xsd:string">
170 <xsd:attribute name="time" type="xsd:dateTime" use="required">
171 <xsd:annotation>
172 <xsd:documentation xml:lang="en">The time when this version of the
173 &lt;xccdf:Tailoring&gt; document was completed. </xsd:documentation>
174 </xsd:annotation>
175 </xsd:attribute>
176 </xsd:extension>
177 </xsd:simpleContent>
178 </xsd:complexType>
179 </xsd:schema>