1
<?xml version="1.0" encoding="UTF-8"?>
3
<!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
4
<!ENTITY c14n 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315'>
5
<!ENTITY xpath 'http://www.w3.org/TR/1999/REC-xpath-19991116'>
6
<!ENTITY xslt 'http://www.w3.org/TR/1999/REC-xslt-19991116'>
7
<!ATTLIST Notaries Id ID #IMPLIED>
10
<Envelope xmlns:foo="http://example.org/foo" xmlns="http://example.org/usps">
11
<DearSir>foo</DearSir>
14
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="signature">
16
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
17
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1" />
18
<Reference URI="http://www.w3.org/TR/xml-stylesheet">
19
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
20
<DigestValue>60NvZvtdTB+7UnlLp/H24p7h4bs=</DigestValue>
22
<Reference URI="http://www.w3.org/Signature/2002/04/xml-stylesheet.b64">
24
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#base64" />
26
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
27
<DigestValue>60NvZvtdTB+7UnlLp/H24p7h4bs=</DigestValue>
29
<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-1">
31
<Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
37
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
38
<DigestValue>zyjp8GJOX69990Kkqw8ioPXGExk=</DigestValue>
40
<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="">
42
<Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
43
<XPath xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
44
ancestor-or-self::dsig:SignedInfo
46
count(ancestor-or-self::dsig:Reference |
47
here()/ancestor::dsig:Reference[1]) >
48
count(ancestor-or-self::dsig:Reference)
50
count(ancestor-or-self::node() |
52
count(ancestor-or-self::node())
56
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
57
<DigestValue>tQiE3GUKiBenPyp3J0Ei6rJMFv4=</DigestValue>
59
<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-2">
61
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#base64" />
63
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
64
<DigestValue>zyjp8GJOX69990Kkqw8ioPXGExk=</DigestValue>
66
<Reference Type="http://www.w3.org/2000/09/xmldsig#Manifest" URI="#manifest-1">
67
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
68
<DigestValue>qg4HFwsN+/WX32uH85WlJU9l45k=</DigestValue>
70
<Reference Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties" URI="#signature-properties-1">
71
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
72
<DigestValue>ETlEI3y7hvvAtMe9wQSz7LhbHEE=</DigestValue>
76
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
78
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
79
<DigestValue>J/O0HhdaPXxx49fgGWMESL09GpA=</DigestValue>
83
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
84
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
86
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
87
<DigestValue>J/O0HhdaPXxx49fgGWMESL09GpA=</DigestValue>
89
<Reference URI="#xpointer(/)">
91
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
93
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
94
<DigestValue>J/O0HhdaPXxx49fgGWMESL09GpA=</DigestValue>
96
<Reference URI="#xpointer(/)">
98
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
99
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
101
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
102
<DigestValue>MkL9CX8yeABBth1RChyPx58Ls8w=</DigestValue>
104
<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-3">
105
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
106
<DigestValue>yamSIokKmjA3hB/s3Fu07wDO3vM=</DigestValue>
108
<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-3">
110
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
112
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
113
<DigestValue>yamSIokKmjA3hB/s3Fu07wDO3vM=</DigestValue>
115
<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#xpointer(id('object-3'))">
116
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
117
<DigestValue>yamSIokKmjA3hB/s3Fu07wDO3vM=</DigestValue>
119
<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#xpointer(id('object-3'))">
121
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
123
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
124
<DigestValue>419CYgyTWOTGYGBhzieWklNf7Bk=</DigestValue>
126
<Reference URI="#reference-2">
127
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
128
<DigestValue>VzK45P9Ksjqq5oXlKQpkGgB2CNY=</DigestValue>
130
<Reference Id="reference-1" URI="#manifest-reference-1">
131
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
132
<DigestValue>7/9fR+NIDz9owc1Lfsxu1JBr8uo=</DigestValue>
134
<Reference Id="reference-2" URI="#reference-1">
135
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
136
<DigestValue>qURlo3LSq4TWQtygBZJ0iXQ9E14=</DigestValue>
140
WvZUJAJ/3QNqzQvwne2vvy7U5Pck8ZZ5UTa6pIwR7GE+PoGi6A1kyw==
143
<RetrievalMethod Type="http://www.w3.org/2000/09/xmldsig#X509Data" URI="#object-4">
145
<Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
146
<XPath xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
147
ancestor-or-self::dsig:X509Data
153
<Object Id="object-1" MimeType="text/plain">I am the text.</Object>
154
<Object Encoding="http://www.w3.org/2000/09/xmldsig#base64" Id="object-2" MimeType="text/plain">SSBhbSB0aGUgdGV4dC4=</Object>
155
<Object Id="object-3">
156
<NonCommentandus xmlns=""><!-- Commentandum --></NonCommentandus>
159
<Manifest Id="manifest-1">
160
<Reference Id="manifest-reference-1" URI="http://www.w3.org/TR/xml-stylesheet">
161
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
162
<DigestValue>60NvZvtdTB+7UnlLp/H24p7h4bs=</DigestValue>
164
<Reference URI="#reference-1">
165
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
166
<DigestValue>qURlo3LSq4TWQtygBZJ0iXQ9E14=</DigestValue>
168
<Reference URI="#notaries">
170
<Transform Algorithm="http://www.w3.org/TR/1999/REC-xslt-19991116">
171
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/strict" exclude-result-prefixes="foo" version="1.0">
172
<xsl:output encoding="UTF-8" indent="no" method="xml" />
173
<xsl:template match="/">
176
<title>Notaries</title>
180
<xsl:for-each select="Notaries/Notary">
183
<xsl:value-of select="@name" />
193
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
195
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
196
<DigestValue>c7wq5XKos6RqNVJyFy7/fl6+sAs=</DigestValue>
201
<SignatureProperties Id="signature-properties-1">
202
<SignatureProperty Target="#signature">
203
<SignerAddress xmlns="urn:demo"><IP>192.168.21.138</IP></SignerAddress>
205
</SignatureProperties>
207
<Object Id="object-4">
210
CN=Merlin Hughes,OU=X/Secure,O=Baltimore Technologies Ltd.,ST=Dublin,C=IE
214
CN=Transient CA,OU=X/Secure,O=Baltimore Technologies Ltd.,ST=Dublin,C=IE
216
<X509SerialNumber>1017788370348</X509SerialNumber>
219
MIIDUDCCAxCgAwIBAgIGAOz46g2sMAkGByqGSM44BAMwbjELMAkGA1UEBhMCSUUx
220
DzANBgNVBAgTBkR1YmxpbjEkMCIGA1UEChMbQmFsdGltb3JlIFRlY2hub2xvZ2ll
221
cyBMdGQuMREwDwYDVQQLEwhYL1NlY3VyZTEVMBMGA1UEAxMMVHJhbnNpZW50IENB
222
MB4XDTAyMDQwMjIyNTkzMFoXDTEyMDQwMjIxNTkyNVowbzELMAkGA1UEBhMCSUUx
223
DzANBgNVBAgTBkR1YmxpbjEkMCIGA1UEChMbQmFsdGltb3JlIFRlY2hub2xvZ2ll
224
cyBMdGQuMREwDwYDVQQLEwhYL1NlY3VyZTEWMBQGA1UEAxMNTWVybGluIEh1Z2hl
225
czCCAbcwggEsBgcqhkjOOAQBMIIBHwKBgQDd454C+qcTIWlb65NKCt2PtguNpOSn
226
Id5woUigu7xBk2QZNAjVyIhMEfSWp8iR0IdKLx+JQLcNOrcn0Wwl5/hhW0MXsmlS
227
8dM5Cq2rtmDHooLxbGTPqtALE6vsXQCk5iLz3MtGh7gyQMZ7q7HT5a3I5NChUgY1
228
MMNQVetRA1susQIVAIQy3BStBjvx89Wq8Tjr7IDP1S8lAoGBAJ58e4W3VqMxm7Zx
229
YJ2xZ6KX0Ze10WnKZDyURn+T9iFIFbKRFElKDeotXwwXwYON8yre3ZRGkC+2+fiU
230
2bdzIWTT6LMbIMVbk+07P4OZOxJ6XWL9GuY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WozGbtnFg
249
nbFnopfRl7XRacpkPJRGf5P2IUgVspEUSUoN6i1fDBfBg43zKt7dlEaQL7b5+JTZ
250
t3MhZNPosxsgxVuT7Ts/g5k7EnpdYv0a5hw5Bw29fjbGHfgM8d2rhd2Ui0xHbk0D
251
451nhLxVWulviOSPhzKKvXrbySADgYQAAoGAfag+HCABIJadDD9Aarhgc2QR3Lp7
252
PpMOh0lAwLiIsvkO4UlbeOS0IJC8bcqLjM1fVw6FGSaxmq+4y1ag2m9k6IdE0Qh5
253
NxB/xFkmdwqXFRIJVp44OeUygB47YK76NmUIYG3DdfiPPU3bqzjvtOtETiCHvo25
254
4D6UjwPpYErXRUajNjA0MA4GA1UdDwEB/wQEAwICBDAPBgNVHRMECDAGAQH/AgEA
255
MBEGA1UdDgQKBAiDhj5AdjLikzAJBgcqhkjOOAQDAy8AMCwCFELu0nuweqW7Wf0s
256
gk/CAGGL0BGKAhRNdgQGr5iyZKoH4oqPm0VJ9TjXLg==
262
<PostScript>bar</PostScript>
263
<Notaries xmlns="" Id="notaries">
264
<Notary name="Great, A. T." />
265
<Notary name="Hun, A. T." />