1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd" [
4 xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
5 <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
9 <!-- Schema for XML Signatures
10 http://www.w3.org/2000/09/xmldsig#
11 $Revision: 1.1 $ on $Date: 2002/02/08 20:32:26 $ by $Author: reagle $
13 Copyright 2001 The Internet Society and W3C (Massachusetts Institute
14 of Technology, Institut National de Recherche en Informatique et en
15 Automatique, Keio University). All Rights Reserved.
16 http://www.w3.org/Consortium/Legal/
18 This document is governed by the W3C Software License [1] as described
21 [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
22 [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
24 <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.w3.org/2000/09/xmldsig#" version="0.1" elementFormDefault="qualified">
26 <!-- Basic Types Defined for Signatures -->
28 <simpleType name="CryptoBinary">
29 <restriction base="base64Binary">
33 <!-- Start Signature -->
35 <element name="Signature" type="ds:SignatureType"/>
36 <complexType name="SignatureType">
38 <element ref="ds:SignedInfo"/>
39 <element ref="ds:SignatureValue"/>
40 <element ref="ds:KeyInfo" minOccurs="0"/>
41 <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
43 <attribute name="Id" type="ID" use="optional"/>
46 <element name="SignatureValue" type="ds:SignatureValueType"/>
47 <complexType name="SignatureValueType">
49 <extension base="base64Binary">
50 <attribute name="Id" type="ID" use="optional"/>
55 <!-- Start SignedInfo -->
57 <element name="SignedInfo" type="ds:SignedInfoType"/>
58 <complexType name="SignedInfoType">
60 <element ref="ds:CanonicalizationMethod"/>
61 <element ref="ds:SignatureMethod"/>
62 <element ref="ds:Reference" maxOccurs="unbounded"/>
64 <attribute name="Id" type="ID" use="optional"/>
67 <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
68 <complexType name="CanonicalizationMethodType" mixed="true">
70 <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
71 <!-- (0,unbounded) elements from (1,1) namespace -->
73 <attribute name="Algorithm" type="anyURI" use="required"/>
76 <element name="SignatureMethod" type="ds:SignatureMethodType"/>
77 <complexType name="SignatureMethodType" mixed="true">
79 <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
80 <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
81 <!-- (0,unbounded) elements from (1,1) external namespace -->
83 <attribute name="Algorithm" type="anyURI" use="required"/>
86 <!-- Start Reference -->
88 <element name="Reference" type="ds:ReferenceType"/>
89 <complexType name="ReferenceType">
91 <element ref="ds:Transforms" minOccurs="0"/>
92 <element ref="ds:DigestMethod"/>
93 <element ref="ds:DigestValue"/>
95 <attribute name="Id" type="ID" use="optional"/>
96 <attribute name="URI" type="anyURI" use="optional"/>
97 <attribute name="Type" type="anyURI" use="optional"/>
100 <element name="Transforms" type="ds:TransformsType"/>
101 <complexType name="TransformsType">
103 <element ref="ds:Transform" maxOccurs="unbounded"/>
107 <element name="Transform" type="ds:TransformType"/>
108 <complexType name="TransformType" mixed="true">
109 <choice minOccurs="0" maxOccurs="unbounded">
110 <any namespace="##other" processContents="lax"/>
111 <!-- (1,1) elements from (0,unbounded) namespaces -->
112 <element name="XPath" type="string"/>
114 <attribute name="Algorithm" type="anyURI" use="required"/>
117 <!-- End Reference -->
119 <element name="DigestMethod" type="ds:DigestMethodType"/>
120 <complexType name="DigestMethodType" mixed="true">
122 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
124 <attribute name="Algorithm" type="anyURI" use="required"/>
127 <element name="DigestValue" type="ds:DigestValueType"/>
128 <simpleType name="DigestValueType">
129 <restriction base="base64Binary"/>
132 <!-- End SignedInfo -->
134 <!-- Start KeyInfo -->
136 <element name="KeyInfo" type="ds:KeyInfoType"/>
137 <complexType name="KeyInfoType" mixed="true">
138 <choice maxOccurs="unbounded">
139 <element ref="ds:KeyName"/>
140 <element ref="ds:KeyValue"/>
141 <element ref="ds:RetrievalMethod"/>
142 <element ref="ds:X509Data"/>
143 <element ref="ds:PGPData"/>
144 <element ref="ds:SPKIData"/>
145 <element ref="ds:MgmtData"/>
146 <any processContents="lax" namespace="##other"/>
147 <!-- (1,1) elements from (0,unbounded) namespaces -->
149 <attribute name="Id" type="ID" use="optional"/>
152 <element name="KeyName" type="string"/>
153 <element name="MgmtData" type="string"/>
155 <element name="KeyValue" type="ds:KeyValueType"/>
156 <complexType name="KeyValueType" mixed="true">
158 <element ref="ds:DSAKeyValue"/>
159 <element ref="ds:RSAKeyValue"/>
160 <any namespace="##other" processContents="lax"/>
164 <element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
165 <complexType name="RetrievalMethodType">
167 <element ref="ds:Transforms" minOccurs="0"/>
169 <attribute name="URI" type="anyURI"/>
170 <attribute name="Type" type="anyURI" use="optional"/>
173 <!-- Start X509Data -->
175 <element name="X509Data" type="ds:X509DataType"/>
176 <complexType name="X509DataType">
177 <sequence maxOccurs="unbounded">
179 <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
180 <element name="X509SKI" type="base64Binary"/>
181 <element name="X509SubjectName" type="string"/>
182 <element name="X509Certificate" type="base64Binary"/>
183 <element name="X509CRL" type="base64Binary"/>
184 <any namespace="##other" processContents="lax"/>
189 <complexType name="X509IssuerSerialType">
191 <element name="X509IssuerName" type="string"/>
192 <element name="X509SerialNumber" type="integer"/>
196 <!-- End X509Data -->
198 <!-- Begin PGPData -->
200 <element name="PGPData" type="ds:PGPDataType"/>
201 <complexType name="PGPDataType">
204 <element name="PGPKeyID" type="base64Binary"/>
205 <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
206 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
209 <element name="PGPKeyPacket" type="base64Binary"/>
210 <any namespace="##other" processContents="lax" minOccurs="0" 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 -->