-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy patharlington-pdf.xsd
163 lines (142 loc) · 5.01 KB
/
arlington-pdf.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- Key name or array index (integer). Or wildcard -->
<xs:element name="NAME">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="isWildcard"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="VALUE">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="type"/>
<xs:attribute ref="isDefaultValue"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="REQUIRED">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="(true|false|fn:IsRequired\(.*\))"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="INHERITABLE" type="xs:boolean"/>
<xs:element name="INTRODUCED">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="(1\.[0-7]|2\.0|fn:Extension\(.*\)|fn:Eval\(fn:Extension\(.*\))"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DEPRECATED" nillable="true">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
<xs:enumeration value="1.1"/>
<xs:enumeration value="1.2"/>
<xs:enumeration value="1.3"/>
<xs:enumeration value="1.4"/>
<xs:enumeration value="1.5"/>
<xs:enumeration value="1.6"/>
<xs:enumeration value="1.7"/>
<xs:enumeration value="2.0"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SPECIAL_CASE" type="xs:string"/>
<!-- definition of attributes -->
<xs:attribute name="id" type="xs:string"/>
<xs:attribute name="type">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="(array|bitmask|boolean|date|dictionary|integer|matrix|name|name-tree|null|number|number-tree|rectangle|stream|string|string-ascii|string-byte|string-text|fn:Deprecated\([12]\.[0-7],.*\))"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<!-- file number in Arlington file set when sorted alphabetically -->
<xs:attribute name="object_number" type="xs:integer"/>
<xs:attribute name="isArray" type="xs:boolean"/>
<xs:attribute name="isDefaultValue" type="xs:boolean"/>
<xs:attribute name="isWildcard" type="xs:boolean"/>
<xs:attribute name="grammar_version" type="xs:string"/>
<!-- for now, always "ISO 32000-2:2020" -->
<xs:attribute name="iso_ref" >
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="ISO 32000-2:2020"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="pdf_version">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
<xs:enumeration value="1.0"/>
<xs:enumeration value="1.1"/>
<xs:enumeration value="1.2"/>
<xs:enumeration value="1.3"/>
<xs:enumeration value="1.4"/>
<xs:enumeration value="1.5"/>
<xs:enumeration value="1.6"/>
<xs:enumeration value="1.7"/>
<xs:enumeration value="2.0"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<!-- definition of complex elements -->
<xs:element name="PDF">
<xs:complexType>
<xs:sequence>
<xs:element ref="OBJECT" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="grammar_version"/>
<xs:attribute ref="pdf_version"/>
<xs:attribute ref="iso_ref"/>
</xs:complexType>
</xs:element>
<xs:element name="OBJECT">
<xs:complexType>
<xs:sequence>
<xs:element ref="ENTRY" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="id"/>
<xs:attribute ref="object_number"/>
<xs:attribute ref="isArray"/>
</xs:complexType>
</xs:element>
<xs:element name="ENTRY">
<xs:complexType>
<xs:sequence>
<xs:element ref="NAME" minOccurs="1" maxOccurs="1"/>
<xs:element ref="VALUES" minOccurs="0" maxOccurs="1"/>
<xs:element ref="REQUIRED" minOccurs="1" maxOccurs="1"/>
<xs:element ref="INDIRECT_REFERENCE" minOccurs="1" maxOccurs="1"/>
<xs:element ref="INHERITABLE" minOccurs="1" maxOccurs="1"/>
<xs:element ref="INTRODUCED" minOccurs="1" maxOccurs="1"/>
<xs:element ref="DEPRECATED" minOccurs="0" maxOccurs="1"/>
<xs:element ref="SPECIAL_CASE" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="VALUES">
<xs:complexType>
<xs:sequence>
<xs:element ref="VALUE" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="INDIRECT_REFERENCE">
<xs:complexType>
<xs:sequence>
<xs:element ref="VALUE" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>