| 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 |
|
| 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 |
|
| 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 <xccdf:Tailoring> element holds one or more |
| 43 |
<xccdf:Profile> elements. These <xccdf:Profile> elements record |
| 44 |
additional tailoring activities that apply to a given <xccdf:Benchmark>. |
| 45 |
<xccdf:Tailoring> elements are separate from <xccdf:Benchmark> |
| 46 |
documents, but each <xccdf:Tailoring> element is associated with a specific |
| 47 |
<xccdf:Benchmark> document. By defining these tailoring actions separately |
| 48 |
from the <xccdf:Benchmark> 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 |
<xccdf:Tailoring> 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_.+"/> |
| 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 <xccdf:Tailoring> element. The |
| 67 |
<xccdf:Tailoring> element allows named tailorings (i.e., <xccdf:Profile> |
| 68 |
elements) of an <xccdf:Benchmark> to be defined separately from the |
| 69 |
<xccdf:Benchmark> itself. The <xccdf:Profile> elements in an |
| 70 |
<xccdf:Tailoring> 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 <xccdf:Benchmark> element's |
| 73 |
<xccdf:Profile> elements. Second, an <xccdf:Tailoring> 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 <xccdf:Benchmark> to which |
| 82 |
this tailoring applies. A <xccdf:Tailoring> document is only |
| 83 |
applicable to a single <xccdf:Benchmark>. 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 <xccdf:Tailoring> 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 <xccdf:Tailoring> |
| 97 |
element, with a required @time attribute that records when the |
| 98 |
<xccdf:Tailoring> element was created. This timestamp is necessary |
| 99 |
because, under some circumstances, a copy of an <xccdf:Tailoring> |
| 100 |
document might be automatically generated. Without the version and |
| 101 |
timestamp, tracking of these automatically created <xccdf:Tailoring> |
| 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 <xccdf:Tailoring> |
| 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"><xccdf:Profile> elements that reference |
| 114 |
and customize sets of items in an <xccdf:Benchmark>. |
| 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 <xccdf:Benchmark> |
| 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 <xccdf:Benchmark> 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 <xccdf:Benchmark> 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 <xccdf:Benchmark> to which an |
| 149 |
<xccdf:Tailoring> 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 |
<xccdf:Benchmark>. </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 |
<xccdf:Tailoring> 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 |
<xccdf:Tailoring> document was completed. </xsd:documentation> |
| 174 |
</xsd:annotation> |
| 175 |
</xsd:attribute> |
| 176 |
</xsd:extension> |
| 177 |
</xsd:simpleContent> |
| 178 |
</xsd:complexType> |
| 179 |
</xsd:schema> |