Git init
[external/xmlsec1.git] / tests / merlin-xpath-filter2-three / sign-spec.tmpl
1 <?xml version="1.0"?>
2 <Document>
3   <ToBeSigned>
4     <!-- comment -->
5     <Data />
6     <NotToBeSigned>
7       <ReallyToBeSigned>
8         <!-- comment -->
9         <Data />
10       </ReallyToBeSigned>
11     </NotToBeSigned>
12   </ToBeSigned>
13   <ToBeSigned>
14     <Data />
15     <NotToBeSigned>
16       <Data />
17     </NotToBeSigned>
18   </ToBeSigned>
19   <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:dsig-xpath="http://www.w3.org/2002/06/xmldsig-filter2">
20     <dsig:SignedInfo>
21       <dsig:CanonicalizationMethod Algorithm="" />
22       <dsig:SignatureMethod Algorithm="" />
23       <dsig:Reference URI="">
24         <dsig:Transforms>
25           <dsig:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2">
26             <dsig-xpath:XPath Filter="intersect"> //ToBeSigned </dsig-xpath:XPath>
27             <dsig-xpath:XPath Filter="subtract"> //NotToBeSigned </dsig-xpath:XPath>
28             <dsig-xpath:XPath Filter="union"> //ReallyToBeSigned </dsig-xpath:XPath>
29           </dsig:Transform>
30         </dsig:Transforms>
31         <dsig:DigestMethod Algorithm="" />
32         <dsig:DigestValue />
33       </dsig:Reference>
34       <dsig:Reference URI="#signature-value">
35         <dsig:Transforms>
36           <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
37           <dsig:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2">
38             <dsig-xpath:XPath Filter="union"> /</dsig-xpath:XPath>
39           </dsig:Transform>
40         </dsig:Transforms>
41         <dsig:DigestMethod Algorithm="" />
42         <dsig:DigestValue />
43       </dsig:Reference>
44     </dsig:SignedInfo>
45     <dsig:SignatureValue Id="signature-value" />
46     <dsig:KeyInfo>
47         <dsig:KeyValue/>
48     </dsig:KeyInfo>
49   </dsig:Signature>
50 </Document>