Debian Codegraph @

schemas/cpe/2.0/cpe-dictionary_2.0.xsd

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema targetNamespace="http://cpe.mitre.org/dictionary/2.0" xmlns:cpe_dict="http://cpe.mitre.org/dictionary/2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xml="http://www.w3.org/XML/1998/namespace" elementFormDefault="qualified" attributeFormDefault="unqualified">
3 <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="../../common/xml.xsd"/>
4 <xsd:annotation>
5 <xsd:documentation xml:lang="en">This is an XML Schema for the CPE Dictionary. It is used to transfer a collection of official CPE Names along with any necessary supporting information (title, references, automated check, etc.). For more information, consult the CPE Specification document.</xsd:documentation>
6 <xsd:appinfo>
7 <schema>CPE Dictionary</schema>
8 <author>Neal Ziring, Andrew Buttner</author>
9 <version>2.0</version>
10 <date>9/14/2007 09:00:00 AM</date>
11 </xsd:appinfo>
12 </xsd:annotation>
13 <!-- =============================================================================== -->
14 <!-- =============================================================================== -->
15 <!-- =============================================================================== -->
16 <xsd:element name="cpe-list">
17 <xsd:annotation>
18 <xsd:documentation xml:lang="en">This element acts as a top-level container for CPE Name items.</xsd:documentation>
19 </xsd:annotation>
20 <xsd:complexType>
21 <xsd:sequence>
22 <xsd:element ref="cpe_dict:cpe-item" minOccurs="1" maxOccurs="unbounded"/>
23 <xsd:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="skip"/>
24 </xsd:sequence>
25 </xsd:complexType>
26 <xsd:key name="itemURIKey">
27 <xsd:selector xpath="./cpe_dict:cpe-item"/>
28 <xsd:field xpath="@name"/>
29 </xsd:key>
30 </xsd:element>
31 <xsd:element name="cpe-item">
32 <xsd:annotation>
33 <xsd:documentation xml:lang="en">This element denotes a single name in the Common Platform Enumeration. It has the following parts: - name, a URI, which must be a unique key, and should follow the URI structure outlined in the CPE Specification. - title, arbitrary friendly name - notes, optional descriptive material - references, optional external info references - check, optional reference to an OVAL test that can confirm or reject an IT system as an instance of the named platform.</xsd:documentation>
34 </xsd:annotation>
35 <xsd:complexType>
36 <xsd:sequence>
37 <xsd:element name="title" type="cpe_dict:textType" minOccurs="1" maxOccurs="1"/>
38 <xsd:element name="notes" minOccurs="0" maxOccurs="1">
39 <xsd:complexType>
40 <xsd:sequence>
41 <xsd:element name="note" type="cpe_dict:textType" minOccurs="1" maxOccurs="unbounded"/>
42 </xsd:sequence>
43 </xsd:complexType>
44 </xsd:element>
45 <xsd:element name="references" minOccurs="0" maxOccurs="1">
46 <xsd:complexType>
47 <xsd:sequence>
48 <xsd:element name="reference" type="cpe_dict:referenceType" minOccurs="1" maxOccurs="unbounded"/>
49 </xsd:sequence>
50 </xsd:complexType>
51 </xsd:element>
52 <xsd:element name="check" type="cpe_dict:checkType" minOccurs="0" maxOccurs="unbounded"/>
53 </xsd:sequence>
54 <xsd:attribute name="name" type="cpe_dict:namePattern" use="required"/>
55 <xsd:attribute name="deprecated" type="xsd:boolean" use="optional" default="false"/>
56 <xsd:attribute name="deprecated_by" type="cpe_dict:namePattern" use="optional"/>
57 </xsd:complexType>
58 <xsd:unique name="checkSystemKey">
59 <xsd:selector xpath="./cpe_dict:check"/>
60 <xsd:field xpath="@system"/>
61 </xsd:unique>
62 </xsd:element>
63 <!-- =============================================================================== -->
64 <!-- ============================== SUPPORTING TYPES ============================== -->
65 <!-- =============================================================================== -->
66 <xsd:complexType name="referenceType">
67 <xsd:annotation>
68 <xsd:documentation xml:lang="en">Type for an reference in the description of a CPE item. This would normally be used to point to extra descriptive material, or the supplier's web site, or the platform documentation. It consists of a piece of text (intended to be human-readable) and a URI (intended to be a URL, and point to a real resource).</xsd:documentation>
69 </xsd:annotation>
70 <xsd:simpleContent>
71 <xsd:extension base="xsd:string">
72 <xsd:attribute name="href" type="xsd:anyURI"/>
73 </xsd:extension>
74 </xsd:simpleContent>
75 </xsd:complexType>
76 <xsd:complexType name="checkType">
77 <xsd:annotation>
78 <xsd:documentation xml:lang="en">Data type for the check element, a checking system specification URI, string content, and an optional external file reference. The checking system specification should be the URI for a particular version of OVAL or a related system testing language, and the content will be an identifier of a test written in that language. The external file reference could be used to point to the file in which the content test identifier is defined.</xsd:documentation>
79 </xsd:annotation>
80 <xsd:simpleContent>
81 <xsd:extension base="xsd:string">
82 <xsd:attribute name="system" type="xsd:anyURI" use="required"/>
83 <xsd:attribute name="href" type="xsd:anyURI" use="optional"/>
84 </xsd:extension>
85 </xsd:simpleContent>
86 </xsd:complexType>
87 <xsd:complexType name="textType">
88 <xsd:annotation>
89 <xsd:documentation xml:lang="en">This type allows the xml:lang attribute to associate a specific language with an element's string content.</xsd:documentation>
90 </xsd:annotation>
91 <xsd:simpleContent>
92 <xsd:extension base="xsd:string">
93 <xsd:attribute ref="xml:lang"/>
94 </xsd:extension>
95 </xsd:simpleContent>
96 </xsd:complexType>
97 <!-- =============================================================================== -->
98 <!-- ================================ ID PATTERNS ================================ -->
99 <!-- =============================================================================== -->
100 <xsd:simpleType name="namePattern">
101 <xsd:annotation>
102 <xsd:documentation xml:lang="en">Define the format for acceptable CPE Names. An urn format is used with the id starting with the word oval followed by a unique string, followed by the three letter code 'def', and ending with an integer.</xsd:documentation>
103 </xsd:annotation>
104 <xsd:restriction base="xsd:anyURI">
105 <xsd:pattern value="cpe:/([aho](:[A-Za-z0-9\._\-~]*(:[A-Za-z0-9\._\-~]*(:[A-Za-z0-9\._\.\-~]*(:[A-Za-z0-9\._\-~]*(:[A-Za-z0-9\._\-~]*(:[A-Za-z0-9\._\-~]*)?)?)?)?)?)?)?"/>
106 </xsd:restriction>
107 </xsd:simpleType>
108 </xsd:schema>