tizen beta release
[framework/web/wrt-commons.git] / etc / schema.xsd
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE schema
3   PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"
4  [
5    <!ATTLIST schema
6      xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
7    <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
8    <!ENTITY % p ''>
9    <!ENTITY % s ''>
10   ]>
11
12 <!-- Schema for XML Signatures
13     http://www.w3.org/2000/09/xmldsig#
14     $Revision: 1.1 $ on $Date: 2002/02/08 20:32:26 $ by $Author: reagle $
15
16     Copyright 2001 The Internet Society and W3C (Massachusetts Institute
17     of Technology, Institut National de Recherche en Informatique et en
18     Automatique, Keio University). All Rights Reserved.
19     http://www.w3.org/Consortium/Legal/
20
21     This document is governed by the W3C Software License [1] as described
22     in the FAQ [2].
23
24     [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
25     [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
26 -->
27
28
29 <schema xmlns="http://www.w3.org/2001/XMLSchema"
30         xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
31         targetNamespace="http://www.w3.org/2000/09/xmldsig#"
32         version="0.1" elementFormDefault="qualified">
33
34 <!-- Basic Types Defined for Signatures -->
35
36 <simpleType name="CryptoBinary">
37   <restriction base="base64Binary">
38   </restriction>
39 </simpleType>
40
41 <!-- Start Signature -->
42
43 <element name="Signature" type="ds:SignatureType"/>
44 <complexType name="SignatureType">
45   <sequence>
46     <element ref="ds:SignedInfo"/>
47     <element ref="ds:SignatureValue"/>
48     <element ref="ds:KeyInfo" minOccurs="0"/>
49     <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
50   </sequence>
51   <attribute name="Id" type="ID" use="optional"/>
52 </complexType>
53
54   <element name="SignatureValue" type="ds:SignatureValueType"/>
55   <complexType name="SignatureValueType">
56     <simpleContent>
57       <extension base="base64Binary">
58         <attribute name="Id" type="ID" use="optional"/>
59       </extension>
60     </simpleContent>
61   </complexType>
62
63 <!-- Start SignedInfo -->
64
65 <element name="SignedInfo" type="ds:SignedInfoType"/>
66 <complexType name="SignedInfoType">
67   <sequence>
68     <element ref="ds:CanonicalizationMethod"/>
69     <element ref="ds:SignatureMethod"/>
70     <element ref="ds:Reference" maxOccurs="unbounded"/>
71   </sequence>
72   <attribute name="Id" type="ID" use="optional"/>
73 </complexType>
74
75   <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
76   <complexType name="CanonicalizationMethodType" mixed="true">
77     <sequence>
78       <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
79       <!-- (0,unbounded) elements from (1,1) namespace -->
80     </sequence>
81     <attribute name="Algorithm" type="anyURI" use="required"/>
82   </complexType>
83
84   <element name="SignatureMethod" type="ds:SignatureMethodType"/>
85   <complexType name="SignatureMethodType" mixed="true">
86     <sequence>
87       <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
88       <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
89       <!-- (0,unbounded) elements from (1,1) external namespace -->
90     </sequence>
91     <attribute name="Algorithm" type="anyURI" use="required"/>
92   </complexType>
93
94 <!-- Start Reference -->
95
96 <element name="Reference" type="ds:ReferenceType"/>
97 <complexType name="ReferenceType">
98   <sequence>
99     <element ref="ds:Transforms" minOccurs="0"/>
100     <element ref="ds:DigestMethod"/>
101     <element ref="ds:DigestValue"/>
102   </sequence>
103   <attribute name="Id" type="ID" use="optional"/>
104   <attribute name="URI" type="anyURI" use="optional"/>
105   <attribute name="Type" type="anyURI" use="optional"/>
106 </complexType>
107
108   <element name="Transforms" type="ds:TransformsType"/>
109   <complexType name="TransformsType">
110     <sequence>
111       <element ref="ds:Transform" maxOccurs="unbounded"/>
112     </sequence>
113   </complexType>
114
115   <element name="Transform" type="ds:TransformType"/>
116   <complexType name="TransformType" mixed="true">
117     <choice minOccurs="0" maxOccurs="unbounded">
118       <any namespace="##other" processContents="lax"/>
119       <!-- (1,1) elements from (0,unbounded) namespaces -->
120       <element name="XPath" type="string"/>
121     </choice>
122     <attribute name="Algorithm" type="anyURI" use="required"/>
123   </complexType>
124
125 <!-- End Reference -->
126
127 <element name="DigestMethod" type="ds:DigestMethodType"/>
128 <complexType name="DigestMethodType" mixed="true">
129   <sequence>
130     <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
131   </sequence>
132   <attribute name="Algorithm" type="anyURI" use="required"/>
133 </complexType>
134
135 <element name="DigestValue" type="ds:DigestValueType"/>
136 <simpleType name="DigestValueType">
137   <restriction base="base64Binary"/>
138 </simpleType>
139
140 <!-- End SignedInfo -->
141
142 <!-- Start KeyInfo -->
143
144 <element name="KeyInfo" type="ds:KeyInfoType"/>
145 <complexType name="KeyInfoType" mixed="true">
146   <choice maxOccurs="unbounded">
147     <element ref="ds:KeyName"/>
148     <element ref="ds:KeyValue"/>
149     <element ref="ds:RetrievalMethod"/>
150     <element ref="ds:X509Data"/>
151     <element ref="ds:PGPData"/>
152     <element ref="ds:SPKIData"/>
153     <element ref="ds:MgmtData"/>
154     <any processContents="lax" namespace="##other"/>
155     <!-- (1,1) elements from (0,unbounded) namespaces -->
156   </choice>
157   <attribute name="Id" type="ID" use="optional"/>
158 </complexType>
159
160   <element name="KeyName" type="string"/>
161   <element name="MgmtData" type="string"/>
162
163   <element name="KeyValue" type="ds:KeyValueType"/>
164   <complexType name="KeyValueType" mixed="true">
165    <choice>
166      <element ref="ds:DSAKeyValue"/>
167      <element ref="ds:RSAKeyValue"/>
168      <element ref="ds:ECKeyValue"/>
169      <any namespace="##other" processContents="lax"/>
170    </choice>
171   </complexType>
172
173 <!-- ECDSA KEY DEFINITIONS -->
174
175   <element name="ECKeyValue" type="ds:ECKeyValueType"/>
176   <complexType name="ECKeyValueType">
177     <sequence>
178       <choice>
179         <element name="ECParameters" type="ds:ECParametersType"/>
180         <element name="NamedCurve" type="ds:NamedCurveType"/>
181       </choice>
182       <element name="PublicKey" type="ds:ECPointType"/>
183     </sequence>
184     <attribute name="Id" type="ID" use="optional"/>
185   </complexType>
186
187   <complexType name="NamedCurveType">
188     <attribute name="URI" type="anyURI" use="required"/>
189   </complexType>
190
191   <simpleType name="ECPointType">
192     <restriction base="ds:CryptoBinary"/>
193   </simpleType>
194
195   <element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
196   <complexType name="RetrievalMethodType">
197     <sequence>
198       <element ref="ds:Transforms" minOccurs="0"/>
199     </sequence>
200     <attribute name="URI" type="anyURI"/>
201     <attribute name="Type" type="anyURI" use="optional"/>
202   </complexType>
203
204     <complexType name="ECParametersType">
205       <sequence>
206         <element name="FieldID" type="ds:FieldIDType"/>
207         <element name="Curve" type="ds:CurveType"/>
208         <element name="Base" type="ds:ECPointType"/>
209         <element name="Order" type="ds:CryptoBinary"/>
210         <element name="CoFactor" type="integer" minOccurs="0"/>
211         <element name="ValidationData" type="ds:ECValidationDataType" minOccurs="0"/>
212       </sequence>
213     </complexType>
214
215     <complexType name="FieldIDType">
216       <choice>
217         <element ref="ds:Prime"/>
218         <element ref="ds:TnB"/>
219         <element ref="ds:PnB"/>
220         <element ref="ds:GnB"/>
221         <any namespace="##other" processContents="lax"/>
222       </choice>
223     </complexType>
224
225     <element name="Prime" type="ds:PrimeFieldParamsType"/>
226     <complexType name="PrimeFieldParamsType">
227       <sequence>
228         <element name="P" type="ds:CryptoBinary"/>
229       </sequence>
230     </complexType>
231
232     <element name="GnB" type="ds:CharTwoFieldParamsType"/>
233     <complexType name="CharTwoFieldParamsType">
234       <sequence>
235         <element name="M" type="positiveInteger"/>
236       </sequence>
237     </complexType>
238
239     <element name="TnB" type="ds:TnBFieldParamsType"/>
240     <complexType name="TnBFieldParamsType">
241       <complexContent>
242         <extension base="ds:CharTwoFieldParamsType">
243           <sequence>
244             <element name="K" type="positiveInteger"/>
245           </sequence>
246         </extension>
247       </complexContent>
248     </complexType>
249
250     <element name="PnB" type="ds:PnBFieldParamsType"/>
251     <complexType name="PnBFieldParamsType">
252       <complexContent>
253         <extension base="ds:CharTwoFieldParamsType">
254           <sequence>
255             <element name="K1" type="positiveInteger"/>
256             <element name="K2" type="positiveInteger"/>
257             <element name="K3" type="positiveInteger"/>
258           </sequence>
259         </extension>
260       </complexContent>
261     </complexType>
262
263     <complexType name="CurveType">
264       <sequence>
265         <element name="A" type="ds:CryptoBinary"/>
266         <element name="B" type="ds:CryptoBinary"/>
267       </sequence>
268     </complexType>
269
270   <complexType name="ECValidationDataType">
271     <sequence>
272       <element name="seed" type="ds:CryptoBinary"/>
273     </sequence>
274     <attribute name="hashAlgorithm" type="anyURI" use="required"/>
275   </complexType>
276
277
278 <!-- Start X509Data -->
279
280 <element name="X509Data" type="ds:X509DataType"/>
281 <complexType name="X509DataType">
282   <sequence maxOccurs="unbounded">
283     <choice>
284       <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
285       <element name="X509SKI" type="base64Binary"/>
286       <element name="X509SubjectName" type="string"/>
287       <element name="X509Certificate" type="base64Binary"/>
288       <element name="X509CRL" type="base64Binary"/>
289       <any namespace="##other" processContents="lax"/>
290     </choice>
291   </sequence>
292 </complexType>
293
294 <complexType name="X509IssuerSerialType">
295   <sequence>
296     <element name="X509IssuerName" type="string"/>
297     <element name="X509SerialNumber" type="integer"/>
298   </sequence>
299 </complexType>
300
301 <!-- End X509Data -->
302
303 <!-- Begin PGPData -->
304
305 <element name="PGPData" type="ds:PGPDataType"/>
306 <complexType name="PGPDataType">
307   <choice>
308     <sequence>
309       <element name="PGPKeyID" type="base64Binary"/>
310       <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
311       <any namespace="##other" processContents="lax" minOccurs="0"
312        maxOccurs="unbounded"/>
313     </sequence>
314     <sequence>
315       <element name="PGPKeyPacket" type="base64Binary"/>
316       <any namespace="##other" processContents="lax" minOccurs="0"
317        maxOccurs="unbounded"/>
318     </sequence>
319   </choice>
320 </complexType>
321
322 <!-- End PGPData -->
323
324 <!-- Begin SPKIData -->
325
326 <element name="SPKIData" type="ds:SPKIDataType"/>
327 <complexType name="SPKIDataType">
328   <sequence maxOccurs="unbounded">
329     <element name="SPKISexp" type="base64Binary"/>
330     <any namespace="##other" processContents="lax" minOccurs="0"/>
331   </sequence>
332 </complexType>
333
334 <!-- End SPKIData -->
335
336 <!-- End KeyInfo -->
337
338 <!-- Start Object (Manifest, SignatureProperty) -->
339
340 <element name="Object" type="ds:ObjectType"/>
341 <complexType name="ObjectType" mixed="true">
342   <sequence minOccurs="0" maxOccurs="unbounded">
343     <any namespace="##any" processContents="lax"/>
344   </sequence>
345   <attribute name="Id" type="ID" use="optional"/>
346   <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
347   <attribute name="Encoding" type="anyURI" use="optional"/>
348 </complexType>
349
350 <element name="Manifest" type="ds:ManifestType"/>
351 <complexType name="ManifestType">
352   <sequence>
353     <element ref="ds:Reference" maxOccurs="unbounded"/>
354   </sequence>
355   <attribute name="Id" type="ID" use="optional"/>
356 </complexType>
357
358 <element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
359 <complexType name="SignaturePropertiesType">
360   <sequence>
361     <element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
362   </sequence>
363   <attribute name="Id" type="ID" use="optional"/>
364 </complexType>
365
366    <element name="SignatureProperty" type="ds:SignaturePropertyType"/>
367    <complexType name="SignaturePropertyType" mixed="true">
368      <choice maxOccurs="unbounded">
369        <any namespace="##other" processContents="lax"/>
370        <!-- (1,1) elements from (1,unbounded) namespaces -->
371      </choice>
372      <attribute name="Target" type="anyURI" use="required"/>
373      <attribute name="Id" type="ID" use="optional"/>
374    </complexType>
375
376 <!-- End Object (Manifest, SignatureProperty) -->
377
378 <!-- Start Algorithm Parameters -->
379
380 <simpleType name="HMACOutputLengthType">
381   <restriction base="integer"/>
382 </simpleType>
383
384 <!-- Start KeyValue Element-types -->
385
386 <element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
387 <complexType name="DSAKeyValueType">
388   <sequence>
389     <sequence minOccurs="0">
390       <element name="P" type="ds:CryptoBinary"/>
391       <element name="Q" type="ds:CryptoBinary"/>
392     </sequence>
393     <element name="G" type="ds:CryptoBinary" minOccurs="0"/>
394     <element name="Y" type="ds:CryptoBinary"/>
395     <element name="J" type="ds:CryptoBinary" minOccurs="0"/>
396     <sequence minOccurs="0">
397       <element name="Seed" type="ds:CryptoBinary"/>
398       <element name="PgenCounter" type="ds:CryptoBinary"/>
399     </sequence>
400   </sequence>
401 </complexType>
402
403 <element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
404 <complexType name="RSAKeyValueType">
405   <sequence>
406     <element name="Modulus" type="ds:CryptoBinary"/>
407     <element name="Exponent" type="ds:CryptoBinary"/>
408   </sequence>
409 </complexType>
410
411 <!-- End KeyValue Element-types -->
412
413 <!-- End Signature -->
414
415 </schema>