1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Schema for XML Signatures
3 http://www.w3.org/2000/09/xmldsig#
4 $Revision: 1.1 $ on $Date: 2002/02/08 20:32:26 $ by $Author: reagle $
6 Copyright 2001 The Internet Society and W3C (Massachusetts Institute
7 of Technology, Institut National de Recherche en Informatique et en
8 Automatique, Keio University). All Rights Reserved.
9 http://www.w3.org/Consortium/Legal/
11 This document is governed by the W3C Software License [1] as described
14 [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
15 [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
19 <schema xmlns="http://www.w3.org/2001/XMLSchema"
20 xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
21 targetNamespace="http://www.w3.org/2000/09/xmldsig#"
22 version="0.1" elementFormDefault="qualified">
24 <!-- Basic Types Defined for Signatures -->
26 <simpleType name="CryptoBinary">
27 <restriction base="base64Binary">
31 <!-- Start Signature -->
33 <element name="Signature" type="ds:SignatureType"/>
34 <complexType name="SignatureType">
36 <element ref="ds:SignedInfo"/>
37 <element ref="ds:SignatureValue"/>
38 <element ref="ds:KeyInfo" minOccurs="0"/>
39 <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
41 <attribute name="Id" type="ID" use="optional"/>
44 <element name="SignatureValue" type="ds:SignatureValueType"/>
45 <complexType name="SignatureValueType">
47 <extension base="base64Binary">
48 <attribute name="Id" type="ID" use="optional"/>
53 <!-- Start SignedInfo -->
55 <element name="SignedInfo" type="ds:SignedInfoType"/>
56 <complexType name="SignedInfoType">
58 <element ref="ds:CanonicalizationMethod"/>
59 <element ref="ds:SignatureMethod"/>
60 <element ref="ds:Reference" maxOccurs="unbounded"/>
62 <attribute name="Id" type="ID" use="optional"/>
65 <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
66 <complexType name="CanonicalizationMethodType" mixed="true">
68 <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
69 <!-- (0,unbounded) elements from (1,1) namespace -->
71 <attribute name="Algorithm" type="anyURI" use="required"/>
74 <element name="SignatureMethod" type="ds:SignatureMethodType"/>
75 <complexType name="SignatureMethodType" mixed="true">
77 <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
78 <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
79 <!-- (0,unbounded) elements from (1,1) external namespace -->
81 <attribute name="Algorithm" type="anyURI" use="required"/>
84 <!-- Start Reference -->
86 <element name="Reference" type="ds:ReferenceType"/>
87 <complexType name="ReferenceType">
89 <element ref="ds:Transforms" minOccurs="0"/>
90 <element ref="ds:DigestMethod"/>
91 <element ref="ds:DigestValue"/>
93 <attribute name="Id" type="ID" use="optional"/>
94 <attribute name="URI" type="anyURI" use="optional"/>
95 <attribute name="Type" type="anyURI" use="optional"/>
98 <element name="Transforms" type="ds:TransformsType"/>
99 <complexType name="TransformsType">
101 <element ref="ds:Transform" maxOccurs="unbounded"/>
105 <element name="Transform" type="ds:TransformType"/>
106 <complexType name="TransformType" mixed="true">
107 <choice minOccurs="0" maxOccurs="unbounded">
108 <any namespace="##other" processContents="lax"/>
109 <!-- (1,1) elements from (0,unbounded) namespaces -->
110 <element name="XPath" type="string"/>
112 <attribute name="Algorithm" type="anyURI" use="required"/>
115 <!-- End Reference -->
117 <element name="DigestMethod" type="ds:DigestMethodType"/>
118 <complexType name="DigestMethodType" mixed="true">
120 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
122 <attribute name="Algorithm" type="anyURI" use="required"/>
125 <element name="DigestValue" type="ds:DigestValueType"/>
126 <simpleType name="DigestValueType">
127 <restriction base="base64Binary"/>
130 <!-- End SignedInfo -->
132 <!-- Start KeyInfo -->
134 <element name="KeyInfo" type="ds:KeyInfoType"/>
135 <complexType name="KeyInfoType" mixed="true">
136 <choice maxOccurs="unbounded">
137 <element ref="ds:KeyName"/>
138 <element ref="ds:KeyValue"/>
139 <element ref="ds:RetrievalMethod"/>
140 <element ref="ds:X509Data"/>
141 <element ref="ds:PGPData"/>
142 <element ref="ds:SPKIData"/>
143 <element ref="ds:MgmtData"/>
144 <any processContents="lax" namespace="##other"/>
145 <!-- (1,1) elements from (0,unbounded) namespaces -->
147 <attribute name="Id" type="ID" use="optional"/>
150 <element name="KeyName" type="string"/>
151 <element name="MgmtData" type="string"/>
153 <element name="KeyValue" type="ds:KeyValueType"/>
154 <complexType name="KeyValueType" mixed="true">
156 <element ref="ds:DSAKeyValue"/>
157 <element ref="ds:RSAKeyValue"/>
158 <any namespace="##other" processContents="lax"/>
162 <element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
163 <complexType name="RetrievalMethodType">
165 <element ref="ds:Transforms" minOccurs="0"/>
167 <attribute name="URI" type="anyURI"/>
168 <attribute name="Type" type="anyURI" use="optional"/>
171 <!-- Start X509Data -->
173 <element name="X509Data" type="ds:X509DataType"/>
174 <complexType name="X509DataType">
175 <sequence maxOccurs="unbounded">
177 <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
178 <element name="X509SKI" type="base64Binary"/>
179 <element name="X509SubjectName" type="string"/>
180 <element name="X509Certificate" type="base64Binary"/>
181 <element name="X509CRL" type="base64Binary"/>
182 <any namespace="##other" processContents="lax"/>
187 <complexType name="X509IssuerSerialType">
189 <element name="X509IssuerName" type="string"/>
190 <element name="X509SerialNumber" type="integer"/>
194 <!-- End X509Data -->
196 <!-- Begin PGPData -->
198 <element name="PGPData" type="ds:PGPDataType"/>
199 <complexType name="PGPDataType">
202 <element name="PGPKeyID" type="base64Binary"/>
203 <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
204 <any namespace="##other" processContents="lax" minOccurs="0"
205 maxOccurs="unbounded"/>
208 <element name="PGPKeyPacket" type="base64Binary"/>
209 <any namespace="##other" processContents="lax" minOccurs="0"
210 maxOccurs="unbounded"/>
217 <!-- Begin SPKIData -->
219 <element name="SPKIData" type="ds:SPKIDataType"/>
220 <complexType name="SPKIDataType">
221 <sequence maxOccurs="unbounded">
222 <element name="SPKISexp" type="base64Binary"/>
223 <any namespace="##other" processContents="lax" minOccurs="0"/>
227 <!-- End SPKIData -->
231 <!-- Start Object (Manifest, SignatureProperty) -->
233 <element name="Object" type="ds:ObjectType"/>
234 <complexType name="ObjectType" mixed="true">
235 <sequence minOccurs="0" maxOccurs="unbounded">
236 <any namespace="##any" processContents="lax"/>
238 <attribute name="Id" type="ID" use="optional"/>
239 <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
240 <attribute name="Encoding" type="anyURI" use="optional"/>
243 <element name="Manifest" type="ds:ManifestType"/>
244 <complexType name="ManifestType">
246 <element ref="ds:Reference" maxOccurs="unbounded"/>
248 <attribute name="Id" type="ID" use="optional"/>
251 <element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
252 <complexType name="SignaturePropertiesType">
254 <element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
256 <attribute name="Id" type="ID" use="optional"/>
259 <element name="SignatureProperty" type="ds:SignaturePropertyType"/>
260 <complexType name="SignaturePropertyType" mixed="true">
261 <choice maxOccurs="unbounded">
262 <any namespace="##other" processContents="lax"/>
263 <!-- (1,1) elements from (1,unbounded) namespaces -->
265 <attribute name="Target" type="anyURI" use="required"/>
266 <attribute name="Id" type="ID" use="optional"/>
269 <!-- End Object (Manifest, SignatureProperty) -->
271 <!-- Start Algorithm Parameters -->
273 <simpleType name="HMACOutputLengthType">
274 <restriction base="integer"/>
277 <!-- Start KeyValue Element-types -->
279 <element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
280 <complexType name="DSAKeyValueType">
282 <sequence minOccurs="0">
283 <element name="P" type="ds:CryptoBinary"/>
284 <element name="Q" type="ds:CryptoBinary"/>
286 <element name="G" type="ds:CryptoBinary" minOccurs="0"/>
287 <element name="Y" type="ds:CryptoBinary"/>
288 <element name="J" type="ds:CryptoBinary" minOccurs="0"/>
289 <sequence minOccurs="0">
290 <element name="Seed" type="ds:CryptoBinary"/>
291 <element name="PgenCounter" type="ds:CryptoBinary"/>
296 <element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
297 <complexType name="RSAKeyValueType">
299 <element name="Modulus" type="ds:CryptoBinary"/>
300 <element name="Exponent" type="ds:CryptoBinary"/>
304 <!-- End KeyValue Element-types -->
306 <!-- End Signature -->