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></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></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></DigestValue>
40 <Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-2">
42 <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#base64" />
44 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
45 <DigestValue></DigestValue>
47 <Reference Type="http://www.w3.org/2000/09/xmldsig#Manifest" URI="#manifest-1">
48 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
49 <DigestValue></DigestValue>
51 <Reference Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties" URI="#signature-properties-1">
52 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
53 <DigestValue></DigestValue>
57 <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
59 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
60 <DigestValue></DigestValue>
64 <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
65 <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
67 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
68 <DigestValue></DigestValue>
70 <Reference URI="#xpointer(/)">
72 <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
74 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
75 <DigestValue></DigestValue>
77 <Reference URI="#xpointer(/)">
79 <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
80 <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
82 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
83 <DigestValue></DigestValue>
85 <Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-3">
86 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
87 <DigestValue></DigestValue>
89 <Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-3">
91 <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
93 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
94 <DigestValue></DigestValue>
96 <Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#xpointer(id('object-3'))">
97 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
98 <DigestValue></DigestValue>
100 <Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#xpointer(id('object-3'))">
102 <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
104 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
105 <DigestValue></DigestValue>
107 <Reference Id="reference-1" URI="#manifest-reference-1">
108 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
109 <DigestValue></DigestValue>
111 <Reference Id="reference-2" URI="#reference-1">
112 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
113 <DigestValue></DigestValue>
115 <Reference URI="#reference-2">
116 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
117 <DigestValue></DigestValue>
119 <Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="">
121 <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
122 <XPath xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
123 ancestor-or-self::dsig:SignedInfo
125 count(ancestor-or-self::dsig:Reference |
126 here()/ancestor::dsig:Reference[1]) >
127 count(ancestor-or-self::dsig:Reference)
129 count(ancestor-or-self::node() |
131 count(ancestor-or-self::node())
135 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
136 <DigestValue></DigestValue>
142 <RetrievalMethod Type="http://www.w3.org/2000/09/xmldsig#X509Data" URI="#object-4">
144 <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
145 <XPath xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
146 ancestor-or-self::dsig:X509Data
152 <Object Id="object-1" MimeType="text/plain">I am the text.</Object>
153 <Object Encoding="http://www.w3.org/2000/09/xmldsig#base64" Id="object-2" MimeType="text/plain">SSBhbSB0aGUgdGV4dC4=</Object>
154 <Object Id="object-3">
155 <NonCommentandus xmlns=""><!-- Commentandum --></NonCommentandus>
158 <Manifest Id="manifest-1">
159 <Reference Id="manifest-reference-1" URI="http://www.w3.org/TR/xml-stylesheet">
160 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
161 <DigestValue></DigestValue>
163 <Reference URI="#reference-1">
164 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
165 <DigestValue></DigestValue>
167 <Reference URI="#notaries">
169 <Transform Algorithm="http://www.w3.org/TR/1999/REC-xslt-19991116">
170 <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">
171 <xsl:output encoding="UTF-8" indent="no" method="xml" />
172 <xsl:template match="/">
175 <title>Notaries</title>
179 <xsl:for-each select="Notaries/Notary">
182 <xsl:value-of select="@name" />
192 <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
194 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
195 <DigestValue></DigestValue>
200 <SignatureProperties Id="signature-properties-1">
201 <SignatureProperty Target="#signature">
202 <SignerAddress xmlns="urn:demo"><IP>192.168.21.138</IP></SignerAddress>
204 </SignatureProperties>
206 <Object Id="object-4">
209 MIIEdDCCBB6gAwIBAgIJANaOuOCRgiz5MA0GCSqGSIb3DQEBBQUAMIHIMQswCQYD
210 VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTE9MDsGA1UEChM0WE1MIFNlY3Vy
211 aXR5IExpYnJhcnkgKGh0dHA6Ly93d3cuYWxla3NleS5jb20veG1sc2VjKTEqMCgG
212 A1UECxMhVGVzdCBTZWNvbmQgTGV2ZWwgUlNBIENlcnRpZmljYXRlMRYwFAYDVQQD
213 Ew1BbGVrc2V5IFNhbmluMSEwHwYJKoZIhvcNAQkBFhJ4bWxzZWNAYWxla3NleS5j
214 b20wHhcNMDUwNzEwMDIzMTU5WhcNMTUwNzA4MDIzMTU5WjCBxzELMAkGA1UEBhMC
215 VVMxEzARBgNVBAgTCkNhbGlmb3JuaWExPTA7BgNVBAoTNFhNTCBTZWN1cml0eSBM
216 aWJyYXJ5IChodHRwOi8vd3d3LmFs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6REWFRbIGfEz3XDgCHCiocM8ExXi7zn26R072cdBz7+w==
238 <PostScript>bar</PostScript>
239 <Notaries xmlns="" Id="notaries">
240 <Notary name="Great, A. T." />
241 <Notary name="Hun, A. T." />