Git init
[external/xmlsec1.git] / tests / merlin-c14n-three / c14n-27.txt
1 <SignedInfo xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:bar="http://example.org/bar" xmlns:baz="http://example.org/baz" xmlns:foo="http://example.org/foo" xml:lang="en-ie">
2       <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationMethod>
3       <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"></SignatureMethod>
4       <Reference URI="">
5         <Transforms>
6           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
7             <XPath>
8               
9               ancestor-or-self::bar:Something
10             </XPath>
11           </Transform>
12         </Transforms>
13         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
14         <DigestValue>zDcKZDPIDity6ezoUjjYh5l5HD8=</DigestValue>
15       </Reference>
16       <Reference URI="">
17         <Transforms>
18           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
19             <XPath>
20               
21               ancestor-or-self::bar:Something  and
22               ((name() != "bar") or parent::bar:Something)  and
23               ((name() != "foo") or parent::foo:Something)  and
24               ((name() != "baz") or parent::baz:Something)  and
25               ((name() != "") or self::text())
26             </XPath>
27           </Transform>
28         </Transforms>
29         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
30         <DigestValue>c6/BJXIi3MjZG8+1xfVv0U0OF/s=</DigestValue>
31       </Reference>
32       <Reference URI="">
33         <Transforms>
34           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
35             <XPath>
36               
37               ancestor-or-self::bar:Something  and
38               (self::text()  or
39                (namespace-uri() != "")  or
40                (string(self::node()) = namespace-uri(parent::node())))
41             </XPath>
42           </Transform>
43         </Transforms>
44         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
45         <DigestValue>jT1amifr+CPI+9DdvhzLAJhMggs=</DigestValue>
46       </Reference>
47       <Reference URI="">
48         <Transforms>
49           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
50             <XPath>
51               
52               ancestor-or-self::bar:Something  and
53               not (self::foo:Something)  and
54               (self::text()  or
55                (namespace-uri() != "")  or
56                (string(self::node()) = namespace-uri(parent::node())))
57             </XPath>
58           </Transform>
59         </Transforms>
60         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
61         <DigestValue>rwkxkAxYpYzu6x85sa2RgCWmn2Q=</DigestValue>
62       </Reference>
63       <Reference URI="">
64         <Transforms>
65           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
66             <XPath>
67               
68               ancestor-or-self::bar:Something  and
69               (count(parent::node()/namespace::*)  !=
70                count(parent::node()/namespace::* | self::node()))
71             </XPath>
72           </Transform>
73         </Transforms>
74         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
75         <DigestValue>wH13J/+xZdks1qYv5s8oQD1u4PE=</DigestValue>
76       </Reference>
77       <Reference URI="">
78         <Transforms>
79           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
80             <XPath>
81               
82               ancestor-or-self::bar:Something  and
83               (self::text()  or
84                (namespace-uri() != ""))
85             </XPath>
86           </Transform>
87         </Transforms>
88         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
89         <DigestValue>wH13J/+xZdks1qYv5s8oQD1u4PE=</DigestValue>
90       </Reference>
91       <Reference URI="">
92         <Transforms>
93           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
94             <XPath>
95               
96               ancestor-or-self::bar:Something  and
97               (count(parent::node()/namespace::*)  =
98                count(parent::node()/namespace::* | self::node()))
99             </XPath>
100           </Transform>
101         </Transforms>
102         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
103         <DigestValue>TYZShIzLB4+/2u+yVB7OocXtWyI=</DigestValue>
104       </Reference>
105       <Reference URI="">
106         <Transforms>
107           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
108             <XPath>
109               
110               ancestor-or-self::bar:Something  and
111               (string(self::node()) = namespace-uri(parent::node()))
112             </XPath>
113           </Transform>
114         </Transforms>
115         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
116         <DigestValue>EhCKd+AMiKcL/i41otNu2FnO+/s=</DigestValue>
117       </Reference>
118       <Reference URI="">
119         <Transforms>
120           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
121             <XPath>
122               
123               ancestor-or-self::bar:Something  and
124               (self::text()  or
125                (namespace-uri() != "")  or
126                ((name() = "")  and
127                 ((count(ancestor-or-self::node()) mod 2) = 1)))
128             </XPath>
129           </Transform>
130         </Transforms>
131         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
132         <DigestValue>5oWfKR+g5kK86E3FRTBck+R/BQ0=</DigestValue>
133       </Reference>
134       <Reference URI="">
135         <Transforms>
136           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
137             <XPath>
138               
139               ancestor-or-self::bar:Something
140             </XPath>
141           </Transform>
142           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
143         </Transforms>
144         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
145         <DigestValue>uKgNnJZ4MvqphhpPjor3iChHsQQ=</DigestValue>
146       </Reference>
147       <Reference URI="">
148         <Transforms>
149           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
150             <XPath>
151               
152               ancestor-or-self::bar:Something  and
153               ((name() != "bar") or parent::bar:Something)  and
154               ((name() != "foo") or parent::foo:Something)  and
155               ((name() != "baz") or parent::baz:Something)  and
156               ((name() != "") or self::text())
157             </XPath>
158           </Transform>
159           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
160         </Transforms>
161         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
162         <DigestValue>PMxe5U6Yzpybj86NXLeXND6J7z8=</DigestValue>
163       </Reference>
164       <Reference URI="">
165         <Transforms>
166           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
167             <XPath>
168               
169               ancestor-or-self::bar:Something  and
170               (self::text()  or
171                (namespace-uri() != "")  or
172                (string(self::node()) = namespace-uri(parent::node())))
173             </XPath>
174           </Transform>
175           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
176         </Transforms>
177         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
178         <DigestValue>uKgNnJZ4MvqphhpPjor3iChHsQQ=</DigestValue>
179       </Reference>
180       <Reference URI="">
181         <Transforms>
182           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
183             <XPath>
184               
185               ancestor-or-self::bar:Something  and
186               not (self::foo:Something)  and
187               (self::text()  or
188                (namespace-uri() != "")  or
189                (string(self::node()) = namespace-uri(parent::node())))
190             </XPath>
191           </Transform>
192           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
193         </Transforms>
194         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
195         <DigestValue>8yo+TMHoDprtw3V8HBuaX7I2eYA=</DigestValue>
196       </Reference>
197       <Reference URI="">
198         <Transforms>
199           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
200             <XPath>
201               
202               ancestor-or-self::bar:Something  and
203               (count(parent::node()/namespace::*)  !=
204                count(parent::node()/namespace::* | self::node()))
205             </XPath>
206           </Transform>
207           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
208         </Transforms>
209         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
210         <DigestValue>yFhy1S9CS8j2bPAgM43KZcSX8Us=</DigestValue>
211       </Reference>
212       <Reference URI="">
213         <Transforms>
214           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
215             <XPath>
216               
217               ancestor-or-self::bar:Something  and
218               (self::text()  or
219                (namespace-uri() != ""))
220             </XPath>
221           </Transform>
222           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
223         </Transforms>
224         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
225         <DigestValue>yFhy1S9CS8j2bPAgM43KZcSX8Us=</DigestValue>
226       </Reference>
227       <Reference URI="">
228         <Transforms>
229           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
230             <XPath>
231               
232               ancestor-or-self::bar:Something  and
233               (count(parent::node()/namespace::*)  =
234                count(parent::node()/namespace::* | self::node()))
235             </XPath>
236           </Transform>
237           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
238         </Transforms>
239         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
240         <DigestValue>2jmj7l5rSw0yVb/vlWAYkK/YBwk=</DigestValue>
241       </Reference>
242       <Reference URI="">
243         <Transforms>
244           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
245             <XPath>
246               
247               ancestor-or-self::bar:Something  and
248               (string(self::node()) = namespace-uri(parent::node()))
249             </XPath>
250           </Transform>
251           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
252         </Transforms>
253         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
254         <DigestValue>2jmj7l5rSw0yVb/vlWAYkK/YBwk=</DigestValue>
255       </Reference>
256       <Reference URI="">
257         <Transforms>
258           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
259             <XPath>
260               
261               ancestor-or-self::bar:Something  and
262               (self::text()  or
263                (namespace-uri() != "")  or
264                ((name() = "")  and
265                 ((count(ancestor-or-self::node()) mod 2) = 1)))
266             </XPath>
267           </Transform>
268           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
269         </Transforms>
270         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
271         <DigestValue>yFhy1S9CS8j2bPAgM43KZcSX8Us=</DigestValue>
272       </Reference>
273       <Reference URI="">
274         <Transforms>
275           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
276             <XPath>
277               
278               ancestor-or-self::bar:Something
279             </XPath>
280           </Transform>
281           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
282             <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="#default"></InclusiveNamespaces>
283           </Transform>
284         </Transforms>
285         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
286         <DigestValue>K5OrULSkVjkuQd85gxbrkcowg60=</DigestValue>
287       </Reference>
288       <Reference URI="">
289         <Transforms>
290           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
291             <XPath>
292               
293               ancestor-or-self::bar:Something  and
294               ((name() != "bar") or parent::bar:Something)  and
295               ((name() != "foo") or parent::foo:Something)  and
296               ((name() != "baz") or parent::baz:Something)  and
297               ((name() != "") or self::text())
298             </XPath>
299           </Transform>
300           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
301             <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="#default"></InclusiveNamespaces>
302           </Transform>
303         </Transforms>
304         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
305         <DigestValue>PMxe5U6Yzpybj86NXLeXND6J7z8=</DigestValue>
306       </Reference>
307       <Reference URI="">
308         <Transforms>
309           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
310             <XPath>
311               
312               ancestor-or-self::bar:Something  and
313               (self::text()  or
314                (namespace-uri() != "")  or
315                (string(self::node()) = namespace-uri(parent::node())))
316             </XPath>
317           </Transform>
318           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
319             <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="#default"></InclusiveNamespaces>
320           </Transform>
321         </Transforms>
322         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
323         <DigestValue>uKgNnJZ4MvqphhpPjor3iChHsQQ=</DigestValue>
324       </Reference>
325       <Reference URI="">
326         <Transforms>
327           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
328             <XPath>
329               
330               ancestor-or-self::bar:Something  and
331               not (self::foo:Something)  and
332               (self::text()  or
333                (namespace-uri() != "")  or
334                (string(self::node()) = namespace-uri(parent::node())))
335             </XPath>
336           </Transform>
337           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
338             <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="#default"></InclusiveNamespaces>
339           </Transform>
340         </Transforms>
341         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
342         <DigestValue>8yo+TMHoDprtw3V8HBuaX7I2eYA=</DigestValue>
343       </Reference>
344       <Reference URI="">
345         <Transforms>
346           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
347             <XPath>
348               
349               ancestor-or-self::bar:Something  and
350               (count(parent::node()/namespace::*)  !=
351                count(parent::node()/namespace::* | self::node()))
352             </XPath>
353           </Transform>
354           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
355             <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="#default"></InclusiveNamespaces>
356           </Transform>
357         </Transforms>
358         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
359         <DigestValue>yFhy1S9CS8j2bPAgM43KZcSX8Us=</DigestValue>
360       </Reference>
361       <Reference URI="">
362         <Transforms>
363           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
364             <XPath>
365               
366               ancestor-or-self::bar:Something  and
367               (self::text()  or
368                (namespace-uri() != ""))
369             </XPath>
370           </Transform>
371           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
372             <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="#default"></InclusiveNamespaces>
373           </Transform>
374         </Transforms>
375         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
376         <DigestValue>yFhy1S9CS8j2bPAgM43KZcSX8Us=</DigestValue>
377       </Reference>
378       <Reference URI="">
379         <Transforms>
380           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
381             <XPath>
382               
383               ancestor-or-self::bar:Something  and
384               (count(parent::node()/namespace::*)  =
385                count(parent::node()/namespace::* | self::node()))
386             </XPath>
387           </Transform>
388           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
389             <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="#default"></InclusiveNamespaces>
390           </Transform>
391         </Transforms>
392         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
393         <DigestValue>9nKcDwpjNsAMgP+d+YYSVix6DG0=</DigestValue>
394       </Reference>
395       <Reference URI="">
396         <Transforms>
397           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
398             <XPath>
399               
400               ancestor-or-self::bar:Something  and
401               (string(self::node()) = namespace-uri(parent::node()))
402             </XPath>
403           </Transform>
404           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
405             <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="#default"></InclusiveNamespaces>
406           </Transform>
407         </Transforms>
408         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
409         <DigestValue>2jmj7l5rSw0yVb/vlWAYkK/YBwk=</DigestValue>
410       </Reference>
411       <Reference URI="">
412         <Transforms>
413           <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
414             <XPath>
415               
416               ancestor-or-self::bar:Something  and
417               (self::text()  or
418                (namespace-uri() != "")  or
419                ((name() = "")  and
420                 ((count(ancestor-or-self::node()) mod 2) = 1)))
421             </XPath>
422           </Transform>
423           <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
424             <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="#default"></InclusiveNamespaces>
425           </Transform>
426         </Transforms>
427         <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
428         <DigestValue>CwltHOmCf0tFSyrqRDYQNFT4eo8=</DigestValue>
429       </Reference>
430     </SignedInfo>