1 <?xml version="1.0" encoding="utf-8"?>
3 PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"
6 xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
7 <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
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 $
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/
21 This document is governed by the W3C Software License [1] as described
24 [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
25 [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
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">
34 <!-- Basic Types Defined for Signatures -->
36 <simpleType name="CryptoBinary">
37 <restriction base="base64Binary">
41 <!-- Start Signature -->
43 <element name="Signature" type="ds:SignatureType"/>
44 <complexType name="SignatureType">
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"/>
51 <attribute name="Id" type="ID" use="optional"/>
54 <element name="SignatureValue" type="ds:SignatureValueType"/>
55 <complexType name="SignatureValueType">
57 <extension base="base64Binary">
58 <attribute name="Id" type="ID" use="optional"/>
63 <!-- Start SignedInfo -->
65 <element name="SignedInfo" type="ds:SignedInfoType"/>
66 <complexType name="SignedInfoType">
68 <element ref="ds:CanonicalizationMethod"/>
69 <element ref="ds:SignatureMethod"/>
70 <element ref="ds:Reference" maxOccurs="unbounded"/>
72 <attribute name="Id" type="ID" use="optional"/>
75 <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
76 <complexType name="CanonicalizationMethodType" mixed="true">
78 <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
79 <!-- (0,unbounded) elements from (1,1) namespace -->
81 <attribute name="Algorithm" type="anyURI" use="required"/>
84 <element name="SignatureMethod" type="ds:SignatureMethodType"/>
85 <complexType name="SignatureMethodType" mixed="true">
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 -->
91 <attribute name="Algorithm" type="anyURI" use="required"/>
94 <!-- Start Reference -->
96 <element name="Reference" type="ds:ReferenceType"/>
97 <complexType name="ReferenceType">
99 <element ref="ds:Transforms" minOccurs="0"/>
100 <element ref="ds:DigestMethod"/>
101 <element ref="ds:DigestValue"/>
103 <attribute name="Id" type="ID" use="optional"/>
104 <attribute name="URI" type="anyURI" use="optional"/>
105 <attribute name="Type" type="anyURI" use="optional"/>
108 <element name="Transforms" type="ds:TransformsType"/>
109 <complexType name="TransformsType">
111 <element ref="ds:Transform" maxOccurs="unbounded"/>
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"/>
122 <attribute name="Algorithm" type="anyURI" use="required"/>
125 <!-- End Reference -->
127 <element name="DigestMethod" type="ds:DigestMethodType"/>
128 <complexType name="DigestMethodType" mixed="true">
130 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
132 <attribute name="Algorithm" type="anyURI" use="required"/>
135 <element name="DigestValue" type="ds:DigestValueType"/>
136 <simpleType name="DigestValueType">
137 <restriction base="base64Binary"/>
140 <!-- End SignedInfo -->
142 <!-- Start KeyInfo -->
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 -->
157 <attribute name="Id" type="ID" use="optional"/>
160 <element name="KeyName" type="string"/>
161 <element name="MgmtData" type="string"/>
163 <element name="KeyValue" type="ds:KeyValueType"/>
164 <complexType name="KeyValueType" mixed="false">
166 <element ref="ds:DSAKeyValue"/>
167 <element ref="ds:RSAKeyValue"/>
168 <any namespace="##other" processContents="lax"/>
172 <element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
173 <complexType name="RetrievalMethodType">
175 <element ref="ds:Transforms" minOccurs="0"/>
177 <attribute name="URI" type="anyURI"/>
178 <attribute name="Type" type="anyURI" use="optional"/>
181 <!-- Start X509Data -->
183 <element name="X509Data" type="ds:X509DataType"/>
184 <complexType name="X509DataType">
185 <sequence maxOccurs="unbounded">
187 <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
188 <element name="X509SKI" type="base64Binary"/>
189 <element name="X509SubjectName" type="string"/>
190 <element name="X509Certificate" type="base64Binary"/>
191 <element name="X509CRL" type="base64Binary"/>
192 <any namespace="##other" processContents="lax"/>
197 <complexType name="X509IssuerSerialType">
199 <element name="X509IssuerName" type="string"/>
200 <element name="X509SerialNumber" type="integer"/>
204 <!-- End X509Data -->
206 <!-- Begin PGPData -->
208 <element name="PGPData" type="ds:PGPDataType"/>
209 <complexType name="PGPDataType">
212 <element name="PGPKeyID" type="base64Binary"/>
213 <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
214 <any namespace="##other" processContents="lax" minOccurs="0"
215 maxOccurs="unbounded"/>
218 <element name="PGPKeyPacket" type="base64Binary"/>
219 <any namespace="##other" processContents="lax" minOccurs="0"
220 maxOccurs="unbounded"/>
227 <!-- Begin SPKIData -->
229 <element name="SPKIData" type="ds:SPKIDataType"/>
230 <complexType name="SPKIDataType">
231 <sequence maxOccurs="unbounded">
232 <element name="SPKISexp" type="base64Binary"/>
233 <any namespace="##other" processContents="lax" minOccurs="0"/>
237 <!-- End SPKIData -->
241 <!-- Start Object (Manifest, SignatureProperty) -->
243 <element name="Object" type="ds:ObjectType"/>
244 <complexType name="ObjectType" mixed="true">
245 <sequence minOccurs="0" maxOccurs="unbounded">
246 <any namespace="##any" processContents="lax"/>
248 <attribute name="Id" type="ID" use="optional"/>
249 <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
250 <attribute name="Encoding" type="anyURI" use="optional"/>
253 <element name="Manifest" type="ds:ManifestType"/>
254 <complexType name="ManifestType">
256 <element ref="ds:Reference" maxOccurs="unbounded"/>
258 <attribute name="Id" type="ID" use="optional"/>
261 <element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
262 <complexType name="SignaturePropertiesType">
264 <element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
266 <attribute name="Id" type="ID" use="optional"/>
269 <element name="SignatureProperty" type="ds:SignaturePropertyType"/>
270 <complexType name="SignaturePropertyType" mixed="true">
271 <choice maxOccurs="unbounded">
272 <any namespace="##other" processContents="lax"/>
273 <!-- (1,1) elements from (1,unbounded) namespaces -->
275 <attribute name="Target" type="anyURI" use="required"/>
276 <attribute name="Id" type="ID" use="optional"/>
279 <!-- End Object (Manifest, SignatureProperty) -->
281 <!-- Start Algorithm Parameters -->
283 <simpleType name="HMACOutputLengthType">
284 <restriction base="integer"/>
287 <!-- Start KeyValue Element-types -->
289 <element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
290 <complexType name="DSAKeyValueType">
292 <sequence minOccurs="0">
293 <element name="P" type="ds:CryptoBinary"/>
294 <element name="Q" type="ds:CryptoBinary"/>
296 <element name="G" type="ds:CryptoBinary" minOccurs="0"/>
297 <element name="Y" type="ds:CryptoBinary"/>
298 <element name="J" type="ds:CryptoBinary" minOccurs="0"/>
299 <sequence minOccurs="0">
300 <element name="Seed" type="ds:CryptoBinary"/>
301 <element name="PgenCounter" type="ds:CryptoBinary"/>
306 <element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
307 <complexType name="RSAKeyValueType">
309 <element name="Modulus" type="ds:CryptoBinary"/>
310 <element name="Exponent" type="ds:CryptoBinary"/>
314 <!-- End KeyValue Element-types -->
316 <!-- End Signature -->