Debian Codegraph @

schemas/arf/1.1/reporting-core_1.1.0.xsd

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:core="http://scap.nist.gov/schema/reporting-core/1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema"
3 xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sch="http://purl.oclc.org/dsdl/schematron"
4 targetNamespace="http://scap.nist.gov/schema/reporting-core/1.1" elementFormDefault="qualified"
5 attributeFormDefault="unqualified" version="1.1.0">
6 <xs:annotation>
7 <xs:appinfo>
8 <schema>Reporting Core</schema>
9 <author>David Waltermire, Adam Halbardier, John Wunder</author>
10 <version>1.1.0</version>
11 <date>2011-06-02</date>
12 </xs:appinfo>
13 </xs:annotation>
14 <xs:complexType name="relationships-container-type">
15 <xs:sequence minOccurs="0">
16 <xs:element name="relationships" minOccurs="0">
17 <xs:annotation>
18 <xs:documentation>Contains a collection of relationship elements.</xs:documentation>
19 </xs:annotation>
20 <xs:complexType>
21 <xs:sequence>
22 <xs:element name="relationship" type="core:relationship-type" maxOccurs="unbounded"/>
23 </xs:sequence>
24 </xs:complexType>
25 </xs:element>
26 </xs:sequence>
27 </xs:complexType>
28 <xs:complexType name="relationship-type">
29 <xs:annotation>
30 <xs:documentation>The relationship-type encapsulates a complete relationship from a subject to one or more
31 objects. It is the responsibility of the XML Schema adopting this type to implement the necessary
32 id/idref instances to ensure that @subject and ref refer to valid elements.</xs:documentation>
33 </xs:annotation>
34 <xs:sequence>
35 <xs:element name="ref" type="xs:NCName" maxOccurs="unbounded">
36 <xs:annotation>
37 <xs:documentation>Must contain the ID of the object of the relationship being established. The
38 implementing XML Schema of relationship-type SHOULD implement the necessary id/idref constructs
39 to ensure a valid reference is constructed.</xs:documentation>
40 </xs:annotation>
41 </xs:element>
42 </xs:sequence>
43 <xs:attribute name="type" type="xs:QName" use="required">
44 <xs:annotation>
45 <xs:documentation>Specifies the type of relationship (predicate) being defined between the subject and
46 the object of the relationship. The value is a QName that should reference a term in a controlled
47 vocabulary which is understood by both the producing and consuming parties.</xs:documentation>
48 </xs:annotation>
49 </xs:attribute>
50 <xs:attribute name="scope" default="inclusive">
51 <xs:annotation>
52 <xs:documentation>Indicates how multiple &lt;ref&gt; elements should be interpreted in this
53 relationship. If "inclusive" is specified, then the relationship being defined is between the
54 subject and the collection of objects indicated by the &lt;ref&gt; elements (i.e. the
55 relationship is not necessarily relevant for any one particular object being referenced, but for the
56 collection of objects referenced). If "exclusive" is specified, then the relationship being defined
57 is between the content payload and each object individually (i.e. this is the same as specifying
58 multiple relationship elements, each with the same @type and subject).</xs:documentation>
59 </xs:annotation>
60 <xs:simpleType>
61 <xs:restriction base="xs:token">
62 <xs:enumeration value="inclusive"/>
63 <xs:enumeration value="exclusive"/>
64 </xs:restriction>
65 </xs:simpleType>
66 </xs:attribute>
67 <xs:attribute name="subject" type="xs:NCName" use="required">
68 <xs:annotation>
69 <xs:documentation>Must contain the ID of the subject of the relationship being established. The
70 implementing XML Schema of relationship-type SHOULD implement the necessary id/idref constructs to
71 ensure a valid reference is constructed.</xs:documentation>
72 </xs:annotation>
73 </xs:attribute>
74 <xs:anyAttribute namespace="##other">
75 <xs:annotation>
76 <xs:documentation>A placeholder so that content creators can add attributes as
77 desired.</xs:documentation>
78 </xs:annotation>
79 </xs:anyAttribute>
80 </xs:complexType>
81 </xs:schema>