| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
<xsd:schema |
| 28 |
targetNamespace="http://cpe.mitre.org/XMLSchema/cpe/1.0" |
| 29 |
elementFormDefault="qualified" attributeFormDefault="unqualified" |
| 30 |
xmlns:cpe="http://cpe.mitre.org/XMLSchema/cpe/1.0" |
| 31 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
| 32 |
<xsd:annotation> |
| 33 |
<xsd:documentation> |
| 34 |
This is an XML Schema for defining names in the |
| 35 |
Common Platform Enumeration, a naming system for |
| 36 |
IT platforms. Each CPE name has the following URI format: |
| 37 |
|
| 38 |
cpe:/ [ hardware-part ] [ / [ os-part ] [ / application-part ] ] |
| 39 |
|
| 40 |
Each part consists of zero or more name elements separated |
| 41 |
by semicolons. Generally, in a description listing like |
| 42 |
this, at most one name element will comprise each part. |
| 43 |
Each name element consists of one or more name components |
| 44 |
separated by colons. The first name component of each |
| 45 |
name element is a supplier or vendor name, expressed as |
| 46 |
the organization-specific label from the supplier's DNS |
| 47 |
name (e.g. from "microsoft.com" use "microsoft"). |
| 48 |
|
| 49 |
This specification was written by Neal Ziring, with assistance |
| 50 |
from Andrew Buttner, and ideas from Todd Wittbold and other |
| 51 |
attendees at the 2nd Annual NIST Security Automation Workshop. |
| 52 |
For more information, consult the CPE specification document. |
| 53 |
<version date="2007-01-07">1.0</version> |
| 54 |
</xsd:documentation> |
| 55 |
</xsd:annotation> |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
<xsd:element name="cpe-list"> |
| 62 |
<xsd:annotation> |
| 63 |
<xsd:documentation xml:lang="en"> |
| 64 |
This element acts as a top-level container for CPE |
| 65 |
name items. |
| 66 |
</xsd:documentation> |
| 67 |
</xsd:annotation> |
| 68 |
<xsd:complexType> |
| 69 |
<xsd:sequence> |
| 70 |
<xsd:element ref="cpe:cpe-item" |
| 71 |
minOccurs="1" maxOccurs="unbounded"/> |
| 72 |
</xsd:sequence> |
| 73 |
</xsd:complexType> |
| 74 |
|
| 75 |
|
| 76 |
<xsd:key name="itemURIKey"> |
| 77 |
<xsd:selector xpath="./cpe:cpe-item"/> |
| 78 |
<xsd:field xpath="@name"/> |
| 79 |
</xsd:key> |
| 80 |
</xsd:element> |
| 81 |
|
| 82 |
<xsd:element name="cpe-item"> |
| 83 |
<xsd:annotation> |
| 84 |
<xsd:documentation xml:lang="en"> |
| 85 |
This element denotes a single name in the Common |
| 86 |
Platform Enumeration. It has the following parts: |
| 87 |
- name, a URI, which must be a unique key, and |
| 88 |
should follow the URI structure outlined in |
| 89 |
the CPE specification. |
| 90 |
- title, arbitrary friendly name |
| 91 |
- notes, optional descriptive material |
| 92 |
- references, optional external info references |
| 93 |
- check, optional reference to an OVAL test that |
| 94 |
can confirm or reject an IT system as an |
| 95 |
instance of the named platform. |
| 96 |
</xsd:documentation> |
| 97 |
</xsd:annotation> |
| 98 |
<xsd:complexType> |
| 99 |
<xsd:sequence> |
| 100 |
<xsd:element name="title" type="xsd:string" |
| 101 |
minOccurs="1" maxOccurs="1"/> |
| 102 |
<xsd:element name="notes" minOccurs="0" maxOccurs="1"> |
| 103 |
<xsd:complexType> |
| 104 |
<xsd:sequence> |
| 105 |
<xsd:element name="note" type="xsd:string" |
| 106 |
minOccurs="1" maxOccurs="unbounded"/> |
| 107 |
</xsd:sequence> |
| 108 |
</xsd:complexType> |
| 109 |
</xsd:element> |
| 110 |
<xsd:element name="references" minOccurs="0" maxOccurs="1"> |
| 111 |
<xsd:complexType> |
| 112 |
<xsd:sequence> |
| 113 |
<xsd:element name="reference" type="cpe:referenceType" |
| 114 |
minOccurs="1" maxOccurs="unbounded"/> |
| 115 |
</xsd:sequence> |
| 116 |
</xsd:complexType> |
| 117 |
</xsd:element> |
| 118 |
<xsd:element name="check" type="cpe:checkType" |
| 119 |
minOccurs="0" maxOccurs="unbounded"/> |
| 120 |
</xsd:sequence> |
| 121 |
<xsd:attribute name="name" type="xsd:anyURI" |
| 122 |
use="required"/> |
| 123 |
</xsd:complexType> |
| 124 |
<xsd:unique name="checkSystemKey"> |
| 125 |
<xsd:selector xpath="./cpe:check"/> |
| 126 |
<xsd:field xpath="@system"/> |
| 127 |
</xsd:unique> |
| 128 |
</xsd:element> |
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
<xsd:complexType name="referenceType"> |
| 135 |
<xsd:annotation> |
| 136 |
<xsd:documentation xml:lang="en"> |
| 137 |
Type for an reference in the description of a CPE |
| 138 |
item. This would normally be used to point to extra |
| 139 |
descriptive material, or the supplier's web site, or |
| 140 |
the platform documentation. It consists of a piece |
| 141 |
of text (intended to be human-readable) and a URI |
| 142 |
(intended to be a URL, and point to a real resource). |
| 143 |
</xsd:documentation> |
| 144 |
</xsd:annotation> |
| 145 |
<xsd:simpleContent> |
| 146 |
<xsd:extension base="xsd:string"> |
| 147 |
<xsd:attribute name="href" type="xsd:anyURI"/> |
| 148 |
</xsd:extension> |
| 149 |
</xsd:simpleContent> |
| 150 |
</xsd:complexType> |
| 151 |
|
| 152 |
<xsd:complexType name="checkType"> |
| 153 |
<xsd:annotation> |
| 154 |
<xsd:documentation xml:lang="en"> |
| 155 |
Data type for the check element, a checking system |
| 156 |
specification URI, string content, and an optional |
| 157 |
external file reference. The checking system |
| 158 |
specification should be the URI for a particular |
| 159 |
version of OVAL or a related system testing language, |
| 160 |
and the content will be an identifier of a test written |
| 161 |
in that language. The external file reference could |
| 162 |
be used to point to the file in which the content test |
| 163 |
identifier is defined. |
| 164 |
</xsd:documentation> |
| 165 |
</xsd:annotation> |
| 166 |
<xsd:simpleContent> |
| 167 |
<xsd:extension base="xsd:string"> |
| 168 |
<xsd:attribute name="system" type="xsd:anyURI" |
| 169 |
use="required"/> |
| 170 |
<xsd:attribute name="href" type="xsd:anyURI" |
| 171 |
use="optional"/> |
| 172 |
</xsd:extension> |
| 173 |
</xsd:simpleContent> |
| 174 |
</xsd:complexType> |
| 175 |
|
| 176 |
|
| 177 |
</xsd:schema> |