-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathspecificationList.xsd
61 lines (61 loc) · 2.83 KB
/
specificationList.xsd
1
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:documentation>Validates files listing all specifications for a single product family</xs:documentation>
</xs:annotation>
<xs:include schemaLocation="accelerators.xsd"/>
<xs:element name="specifications">
<xs:annotation>
<xs:documentation>A grouper for all specifications for the family</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="specification" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A single specification (core spec, implementation guide, etc.) that Jira feedback can be raised about</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="key" use="required">
<xs:annotation>
<xs:documentation>The internal key used within Jira trackers. This should never change or be removed</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:pattern value="[a-z0-9\-]+"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="name" use="required">
<xs:annotation>
<xs:documentation>The name to display when a user is looking at the tracker or selecting a specification for searching. This can change if the specification is renamed</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z][^\s]+([\s][^\s]+)*"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="accelerator" type="Accelerator">
<xs:annotation>
<xs:documentation>Indicates the accelerator responsible for this specification</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="deprecated" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>If true, indicates that new feedback cannot be submitted against the specification any longer, however existing trackers referencing the specification can still be searched and displayed.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="spec-key-unique">
<xs:selector xpath="specification"/>
<xs:field xpath="@key"/>
</xs:unique>
<xs:unique name="spec-name-unique">
<xs:selector xpath="specification"/>
<xs:field xpath="@name"/>
</xs:unique>
</xs:element>
</xs:schema>