1 <?xml version="1.0" encoding="utf-8"?>
3 <!-- Schema for XML Signatures
4 http://www.w3.org/2000/09/xmldsig#
5 $Revision: 1.2 $ on $Date: 2005/06/03 03:09:24 $ by $Author: cantor $
7 Copyright 2001 The Internet Society and W3C (Massachusetts Institute
8 of Technology, Institut National de Recherche en Informatique et en
9 Automatique, Keio University). All Rights Reserved.
10 http://www.w3.org/Consortium/Legal/
12 This document is governed by the W3C Software License [1] as described
15 [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
16 [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
20 <schema xmlns="http://www.w3.org/2001/XMLSchema"
21 xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
22 targetNamespace="http://www.w3.org/2000/09/xmldsig#"
23 version="0.1" elementFormDefault="qualified">
25 <!-- Basic Types Defined for Signatures -->
27 <simpleType name="CryptoBinary">
28 <restriction base="base64Binary">
32 <!-- Start Signature -->
34 <element name="Signature" type="ds:SignatureType"/>
35 <complexType name="SignatureType">
37 <element ref="ds:SignedInfo"/>
38 <element ref="ds:SignatureValue"/>
39 <element ref="ds:KeyInfo" minOccurs="0"/>
40 <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
42 <attribute name="Id" type="ID" use="optional"/>
45 <element name="SignatureValue" type="ds:SignatureValueType"/>
46 <complexType name="SignatureValueType">
48 <extension base="base64Binary">
49 <attribute name="Id" type="ID" use="optional"/>
54 <!-- Start SignedInfo -->
56 <element name="SignedInfo" type="ds:SignedInfoType"/>
57 <complexType name="SignedInfoType">
59 <element ref="ds:CanonicalizationMethod"/>
60 <element ref="ds:SignatureMethod"/>
61 <element ref="ds:Reference" maxOccurs="unbounded"/>
63 <attribute name="Id" type="ID" use="optional"/>
66 <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
67 <complexType name="CanonicalizationMethodType" mixed="true">
69 <any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
70 <!-- (0,unbounded) elements from (1,1) namespace -->
72 <attribute name="Algorithm" type="anyURI" use="required"/>
75 <element name="SignatureMethod" type="ds:SignatureMethodType"/>
76 <complexType name="SignatureMethodType" mixed="true">
78 <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
79 <any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
80 <!-- (0,unbounded) elements from (1,1) external namespace -->
82 <attribute name="Algorithm" type="anyURI" use="required"/>
85 <!-- Start Reference -->
87 <element name="Reference" type="ds:ReferenceType"/>
88 <complexType name="ReferenceType">
90 <element ref="ds:Transforms" minOccurs="0"/>
91 <element ref="ds:DigestMethod"/>
92 <element ref="ds:DigestValue"/>
94 <attribute name="Id" type="ID" use="optional"/>
95 <attribute name="URI" type="anyURI" use="optional"/>
96 <attribute name="Type" type="anyURI" use="optional"/>
99 <element name="Transforms" type="ds:TransformsType"/>
100 <complexType name="TransformsType">
102 <element ref="ds:Transform" maxOccurs="unbounded"/>
106 <element name="Transform" type="ds:TransformType"/>
107 <complexType name="TransformType" mixed="true">
108 <choice minOccurs="0" maxOccurs="unbounded">
109 <any namespace="##other" processContents="lax"/>
110 <!-- (1,1) elements from (0,unbounded) namespaces -->
111 <element name="XPath" type="string"/>
113 <attribute name="Algorithm" type="anyURI" use="required"/>
116 <!-- End Reference -->
118 <element name="DigestMethod" type="ds:DigestMethodType"/>
119 <complexType name="DigestMethodType" mixed="true">
121 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
123 <attribute name="Algorithm" type="anyURI" use="required"/>
126 <element name="DigestValue" type="ds:DigestValueType"/>
127 <simpleType name="DigestValueType">
128 <restriction base="base64Binary"/>
131 <!-- End SignedInfo -->
133 <!-- Start KeyInfo -->
135 <element name="KeyInfo" type="ds:KeyInfoType"/>
136 <complexType name="KeyInfoType" mixed="true">
137 <choice maxOccurs="unbounded">
138 <element ref="ds:KeyName"/>
139 <element ref="ds:KeyValue"/>
140 <element ref="ds:RetrievalMethod"/>
141 <element ref="ds:X509Data"/>
142 <element ref="ds:PGPData"/>
143 <element ref="ds:SPKIData"/>
144 <element ref="ds:MgmtData"/>
145 <any processContents="lax" namespace="##other"/>
146 <!-- (1,1) elements from (0,unbounded) namespaces -->
148 <attribute name="Id" type="ID" use="optional"/>
151 <element name="KeyName" type="string"/>
152 <element name="MgmtData" type="string"/>
154 <element name="KeyValue" type="ds:KeyValueType"/>
155 <complexType name="KeyValueType" mixed="true">
157 <element ref="ds:DSAKeyValue"/>
158 <element ref="ds:RSAKeyValue"/>
159 <any namespace="##other" processContents="lax"/>
163 <element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
164 <complexType name="RetrievalMethodType">
166 <element ref="ds:Transforms" minOccurs="0"/>
168 <attribute name="URI" type="anyURI" use="required"/>
169 <attribute name="Type" type="anyURI" use="optional"/>
172 <!-- Start X509Data -->
174 <element name="X509Data" type="ds:X509DataType"/>
175 <complexType name="X509DataType">
176 <sequence maxOccurs="unbounded">
178 <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
179 <element name="X509SKI" type="base64Binary"/>
180 <element name="X509SubjectName" type="string"/>
181 <element name="X509Certificate" type="base64Binary"/>
182 <element name="X509CRL" type="base64Binary"/>
183 <any namespace="##other" processContents="lax"/>
188 <complexType name="X509IssuerSerialType">
190 <element name="X509IssuerName" type="string"/>
191 <element name="X509SerialNumber" type="string"/>
195 <!-- End X509Data -->
197 <!-- Begin PGPData -->
199 <element name="PGPData" type="ds:PGPDataType"/>
200 <complexType name="PGPDataType">
203 <element name="PGPKeyID" type="base64Binary"/>
204 <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
205 <any namespace="##other" processContents="lax" minOccurs="0"
206 maxOccurs="unbounded"/>
209 <element name="PGPKeyPacket" type="base64Binary"/>
210 <any namespace="##other" processContents="lax" minOccurs="0"
211 maxOccurs="unbounded"/>
218 <!-- Begin SPKIData -->
220 <element name="SPKIData" type="ds:SPKIDataType"/>
221 <complexType name="SPKIDataType">
222 <sequence maxOccurs="unbounded">
223 <element name="SPKISexp" type="base64Binary"/>
224 <any namespace="##other" processContents="lax" minOccurs="0"/>
228 <!-- End SPKIData -->
232 <!-- Start Object (Manifest, SignatureProperty) -->
234 <element name="Object" type="ds:ObjectType"/>
235 <complexType name="ObjectType" mixed="true">
236 <sequence minOccurs="0" maxOccurs="unbounded">
237 <any namespace="##any" processContents="lax"/>
239 <attribute name="Id" type="ID" use="optional"/>
240 <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
241 <attribute name="Encoding" type="anyURI" use="optional"/>
244 <element name="Manifest" type="ds:ManifestType"/>
245 <complexType name="ManifestType">
247 <element ref="ds:Reference" maxOccurs="unbounded"/>
249 <attribute name="Id" type="ID" use="optional"/>
252 <element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
253 <complexType name="SignaturePropertiesType">
255 <element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
257 <attribute name="Id" type="ID" use="optional"/>
260 <element name="SignatureProperty" type="ds:SignaturePropertyType"/>
261 <complexType name="SignaturePropertyType" mixed="true">
262 <choice maxOccurs="unbounded">
263 <any namespace="##other" processContents="lax"/>
264 <!-- (1,1) elements from (1,unbounded) namespaces -->
266 <attribute name="Target" type="anyURI" use="required"/>
267 <attribute name="Id" type="ID" use="optional"/>
270 <!-- End Object (Manifest, SignatureProperty) -->
272 <!-- Start Algorithm Parameters -->
274 <simpleType name="HMACOutputLengthType">
275 <restriction base="integer"/>
278 <!-- Start KeyValue Element-types -->
280 <element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
281 <complexType name="DSAKeyValueType">
283 <sequence minOccurs="0">
284 <element name="P" type="ds:CryptoBinary"/>
285 <element name="Q" type="ds:CryptoBinary"/>
287 <element name="G" type="ds:CryptoBinary" minOccurs="0"/>
288 <element name="Y" type="ds:CryptoBinary"/>
289 <element name="J" type="ds:CryptoBinary" minOccurs="0"/>
290 <sequence minOccurs="0">
291 <element name="Seed" type="ds:CryptoBinary"/>
292 <element name="PgenCounter" type="ds:CryptoBinary"/>
297 <element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
298 <complexType name="RSAKeyValueType">
300 <element name="Modulus" type="ds:CryptoBinary"/>
301 <element name="Exponent" type="ds:CryptoBinary"/>
305 <!-- End KeyValue Element-types -->
307 <!-- End Signature -->