Debian Codegraph @

xmlschema/schemas/DSIG/xmldsig-core-schema.xsd

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Fallback schema for http://www.w3.org/2000/09/xmldsig# namespace:
4 - DTD commented out for processing the schema with the safe parser
5 -->
6
7 <!--
8 <!DOCTYPE schema
9 PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"
10 [
11 <!ATTLIST schema
12 xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
13 <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
14 <!ENTITY % p ''>
15 <!ENTITY % s ''>
16 ]>
17 -->
18
19 <!-- Schema for XML Signatures
20 http://www.w3.org/2000/09/xmldsig#
21 $Revision: 1.1 $ on $Date: 2002/02/08 20:32:26 $ by $Author: reagle $
22
23 Copyright 2001 The Internet Society and W3C (Massachusetts Institute
24 of Technology, Institut National de Recherche en Informatique et en
25 Automatique, Keio University). All Rights Reserved.
26 http://www.w3.org/Consortium/Legal/
27
28 This document is governed by the W3C Software License [1] as described
29 in the FAQ [2].
30
31 [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
32 [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
33 -->
34
35
36 <schema xmlns="http://www.w3.org/2001/XMLSchema"
37 xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
38 targetNamespace="http://www.w3.org/2000/09/xmldsig#"
39 version="0.1" elementFormDefault="qualified">
40
41 <!-- Basic Types Defined for Signatures -->
42
43 <simpleType name="CryptoBinary">
44 <restriction base="base64Binary">
45 </restriction>
46 </simpleType>
47
48 <!-- Start Signature -->
49
50 <element name="Signature" type="ds:SignatureType"/>
51 <complexType name="SignatureType">
52 <sequence>
53 <element ref="ds:SignedInfo"/>
54 <element ref="ds:SignatureValue"/>
55 <element ref="ds:KeyInfo" minOccurs="0"/>
56 <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
57 </sequence>
58 <attribute name="Id" type="ID" use="optional"/>
59 </complexType>
60
61 <element name="SignatureValue" type="ds:SignatureValueType"/>
62 <complexType name="SignatureValueType">
63 <simpleContent>
64 <extension base="base64Binary">
65 <attribute name="Id" type="ID" use="optional"/>
66 </extension>
67 </simpleContent>
68 </complexType>
69
70 <!-- Start SignedInfo -->
71
72 <element name="SignedInfo" type="ds:SignedInfoType"/>
73 <complexType name="SignedInfoType">
74 <sequence>
75 <element ref="ds:CanonicalizationMethod"/>
76 <element ref="ds:SignatureMethod"/>
77 <element ref="ds:Reference" maxOccurs="unbounded"/>
78 </sequence>
79 <attribute name="Id" type="ID" use="optional"/>
80 </complexType>
81
82 <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
83 <complexType name="CanonicalizationMethodType" mixed="true">
84 <sequence>
85 <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
86 <!-- (0,unbounded) elements from (1,1) namespace -->
87 </sequence>
88 <attribute name="Algorithm" type="anyURI" use="required"/>
89 </complexType>
90
91 <element name="SignatureMethod" type="ds:SignatureMethodType"/>
92 <complexType name="SignatureMethodType" mixed="true">
93 <sequence>
94 <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
95 <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
96 <!-- (0,unbounded) elements from (1,1) external namespace -->
97 </sequence>
98 <attribute name="Algorithm" type="anyURI" use="required"/>
99 </complexType>
100
101 <!-- Start Reference -->
102
103 <element name="Reference" type="ds:ReferenceType"/>
104 <complexType name="ReferenceType">
105 <sequence>
106 <element ref="ds:Transforms" minOccurs="0"/>
107 <element ref="ds:DigestMethod"/>
108 <element ref="ds:DigestValue"/>
109 </sequence>
110 <attribute name="Id" type="ID" use="optional"/>
111 <attribute name="URI" type="anyURI" use="optional"/>
112 <attribute name="Type" type="anyURI" use="optional"/>
113 </complexType>
114
115 <element name="Transforms" type="ds:TransformsType"/>
116 <complexType name="TransformsType">
117 <sequence>
118 <element ref="ds:Transform" maxOccurs="unbounded"/>
119 </sequence>
120 </complexType>
121
122 <element name="Transform" type="ds:TransformType"/>
123 <complexType name="TransformType" mixed="true">
124 <choice minOccurs="0" maxOccurs="unbounded">
125 <any namespace="##other" processContents="lax"/>
126 <!-- (1,1) elements from (0,unbounded) namespaces -->
127 <element name="XPath" type="string"/>
128 </choice>
129 <attribute name="Algorithm" type="anyURI" use="required"/>
130 </complexType>
131
132 <!-- End Reference -->
133
134 <element name="DigestMethod" type="ds:DigestMethodType"/>
135 <complexType name="DigestMethodType" mixed="true">
136 <sequence>
137 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
138 </sequence>
139 <attribute name="Algorithm" type="anyURI" use="required"/>
140 </complexType>
141
142 <element name="DigestValue" type="ds:DigestValueType"/>
143 <simpleType name="DigestValueType">
144 <restriction base="base64Binary"/>
145 </simpleType>
146
147 <!-- End SignedInfo -->
148
149 <!-- Start KeyInfo -->
150
151 <element name="KeyInfo" type="ds:KeyInfoType"/>
152 <complexType name="KeyInfoType" mixed="true">
153 <choice maxOccurs="unbounded">
154 <element ref="ds:KeyName"/>
155 <element ref="ds:KeyValue"/>
156 <element ref="ds:RetrievalMethod"/>
157 <element ref="ds:X509Data"/>
158 <element ref="ds:PGPData"/>
159 <element ref="ds:SPKIData"/>
160 <element ref="ds:MgmtData"/>
161 <any processContents="lax" namespace="##other"/>
162 <!-- (1,1) elements from (0,unbounded) namespaces -->
163 </choice>
164 <attribute name="Id" type="ID" use="optional"/>
165 </complexType>
166
167 <element name="KeyName" type="string"/>
168 <element name="MgmtData" type="string"/>
169
170 <element name="KeyValue" type="ds:KeyValueType"/>
171 <complexType name="KeyValueType" mixed="true">
172 <choice>
173 <element ref="ds:DSAKeyValue"/>
174 <element ref="ds:RSAKeyValue"/>
175 <any namespace="##other" processContents="lax"/>
176 </choice>
177 </complexType>
178
179 <element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
180 <complexType name="RetrievalMethodType">
181 <sequence>
182 <element ref="ds:Transforms" minOccurs="0"/>
183 </sequence>
184 <attribute name="URI" type="anyURI"/>
185 <attribute name="Type" type="anyURI" use="optional"/>
186 </complexType>
187
188 <!-- Start X509Data -->
189
190 <element name="X509Data" type="ds:X509DataType"/>
191 <complexType name="X509DataType">
192 <sequence maxOccurs="unbounded">
193 <choice>
194 <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
195 <element name="X509SKI" type="base64Binary"/>
196 <element name="X509SubjectName" type="string"/>
197 <element name="X509Certificate" type="base64Binary"/>
198 <element name="X509CRL" type="base64Binary"/>
199 <any namespace="##other" processContents="lax"/>
200 </choice>
201 </sequence>
202 </complexType>
203
204 <complexType name="X509IssuerSerialType">
205 <sequence>
206 <element name="X509IssuerName" type="string"/>
207 <element name="X509SerialNumber" type="integer"/>
208 </sequence>
209 </complexType>
210
211 <!-- End X509Data -->
212
213 <!-- Begin PGPData -->
214
215 <element name="PGPData" type="ds:PGPDataType"/>
216 <complexType name="PGPDataType">
217 <choice>
218 <sequence>
219 <element name="PGPKeyID" type="base64Binary"/>
220 <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
221 <any namespace="##other" processContents="lax" minOccurs="0"
222 maxOccurs="unbounded"/>
223 </sequence>
224 <sequence>
225 <element name="PGPKeyPacket" type="base64Binary"/>
226 <any namespace="##other" processContents="lax" minOccurs="0"
227 maxOccurs="unbounded"/>
228 </sequence>
229 </choice>
230 </complexType>
231
232 <!-- End PGPData -->
233
234 <!-- Begin SPKIData -->
235
236 <element name="SPKIData" type="ds:SPKIDataType"/>
237 <complexType name="SPKIDataType">
238 <sequence maxOccurs="unbounded">
239 <element name="SPKISexp" type="base64Binary"/>
240 <any namespace="##other" processContents="lax" minOccurs="0"/>
241 </sequence>
242 </complexType>
243
244 <!-- End SPKIData -->
245
246 <!-- End KeyInfo -->
247
248 <!-- Start Object (Manifest, SignatureProperty) -->
249
250 <element name="Object" type="ds:ObjectType"/>
251 <complexType name="ObjectType" mixed="true">
252 <sequence minOccurs="0" maxOccurs="unbounded">
253 <any namespace="##any" processContents="lax"/>
254 </sequence>
255 <attribute name="Id" type="ID" use="optional"/>
256 <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
257 <attribute name="Encoding" type="anyURI" use="optional"/>
258 </complexType>
259
260 <element name="Manifest" type="ds:ManifestType"/>
261 <complexType name="ManifestType">
262 <sequence>
263 <element ref="ds:Reference" maxOccurs="unbounded"/>
264 </sequence>
265 <attribute name="Id" type="ID" use="optional"/>
266 </complexType>
267
268 <element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
269 <complexType name="SignaturePropertiesType">
270 <sequence>
271 <element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
272 </sequence>
273 <attribute name="Id" type="ID" use="optional"/>
274 </complexType>
275
276 <element name="SignatureProperty" type="ds:SignaturePropertyType"/>
277 <complexType name="SignaturePropertyType" mixed="true">
278 <choice maxOccurs="unbounded">
279 <any namespace="##other" processContents="lax"/>
280 <!-- (1,1) elements from (1,unbounded) namespaces -->
281 </choice>
282 <attribute name="Target" type="anyURI" use="required"/>
283 <attribute name="Id" type="ID" use="optional"/>
284 </complexType>
285
286 <!-- End Object (Manifest, SignatureProperty) -->
287
288 <!-- Start Algorithm Parameters -->
289
290 <simpleType name="HMACOutputLengthType">
291 <restriction base="integer"/>
292 </simpleType>
293
294 <!-- Start KeyValue Element-types -->
295
296 <element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
297 <complexType name="DSAKeyValueType">
298 <sequence>
299 <sequence minOccurs="0">
300 <element name="P" type="ds:CryptoBinary"/>
301 <element name="Q" type="ds:CryptoBinary"/>
302 </sequence>
303 <element name="G" type="ds:CryptoBinary" minOccurs="0"/>
304 <element name="Y" type="ds:CryptoBinary"/>
305 <element name="J" type="ds:CryptoBinary" minOccurs="0"/>
306 <sequence minOccurs="0">
307 <element name="Seed" type="ds:CryptoBinary"/>
308 <element name="PgenCounter" type="ds:CryptoBinary"/>
309 </sequence>
310 </sequence>
311 </complexType>
312
313 <element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
314 <complexType name="RSAKeyValueType">
315 <sequence>
316 <element name="Modulus" type="ds:CryptoBinary"/>
317 <element name="Exponent" type="ds:CryptoBinary"/>
318 </sequence>
319 </complexType>
320
321 <!-- End KeyValue Element-types -->
322
323 <!-- End Signature -->
324
325 </schema>