Explanation of the output

The following text contains the nodeset of the given Reference before it is canonicalized. There exist four different styles to indicate how a given node is treated.

Output

<doc xmlns="" xmlns:foo="http://www.bar.org" xml:base="http://www.example.org/2002/">
   <e1 xmlns="" xmlns:foo="http://www.bar.org"></e1>
   <e2 xmlns="" xmlns:foo="http://www.bar.org"></e2>
   <e3 xmlns="" xmlns:foo="http://www.bar.org" id="elem3" name="elem3"></e3>
   <e4 xmlns="" xmlns:foo="http://www.bar.org" id="elem4" name="elem4"></e4>
   <e5 xmlns="http://example.org" xmlns:a="http://www.w3.org" xmlns:b="http://www.ietf.org" xmlns:foo="http://www.bar.org" attr="I'm" attr2="all" b:attr="sorted" a:attr="out"></e5>
   <e6 xmlns="" xmlns:a="http://www.w3.org" xmlns:foo="http://www.bar.org" test="../baz">
       <e7 xmlns="http://www.ietf.org" xmlns:a="http://www.w3.org" xmlns:foo="http://www.bar.org">
           <e8 xmlns="" xmlns:a="http://www.w3.org" xmlns:foo="http://www.bar.org" a:foo="bar">
               <e9 xmlns="" xmlns:a="http://www.ietf.org" xmlns:foo="http://www.bar.org" attr="default"></e9>
           </e8>
       </e7>
   </e6>
   <Signature xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
      <SignedInfo xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" xml:base="http://www.example.org/2002/">
         <CanonicalizationMethod xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationMethod>
         <SignatureMethod xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"></SignatureMethod>
         <Reference xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" URI="">
            <Transforms xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
               <Transform xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                  <XPath xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
                     ancestor-or-self::e6
                  </XPath>
               </Transform>
               <Transform xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></Transform>
            </Transforms>
            <DigestMethod xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/2001/04/xmldsig-more#md5"></DigestMethod>
            <DigestValue xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">AaBWmuBu+YJ6/VVXKwlrdA==</DigestValue>
         </Reference>
         <Reference xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" URI="">
            <Transforms xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
               <Transform xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                  <XPath xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
                     ancestor-or-self::e6
                  </XPath>
               </Transform>
               <Transform xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
            </Transforms>
            <DigestMethod xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/2001/04/xmldsig-more#md5"></DigestMethod>
            <DigestValue xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">SjyCLpdMX/5X+8Wueu3tlg==</DigestValue>
         </Reference>
         <Reference xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" URI="">
            <Transforms xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
               <Transform xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
                  <XPath xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
                     ancestor-or-self::e6
                  </XPath>
               </Transform>
               <Transform xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
                  <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:foo="http://www.bar.org" PrefixList="a"></InclusiveNamespaces>
               </Transform>
            </Transforms>
            <DigestMethod xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org" Algorithm="http://www.w3.org/2001/04/xmldsig-more#md5"></DigestMethod>
            <DigestValue xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">lOOQdTLkMX7sv41ZlpwO0g==</DigestValue>
         </Reference>
      </SignedInfo>
      <SignatureValue xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
         QY8y1yZWODi6TR/vlmHwz17B6dk5mekvRNJozYZUBovxQat0F2o4/Q==
      </SignatureValue>
      <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
         <KeyValue xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
            <DSAKeyValue xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
               <P xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
                  8FkJgwdyizV5Vd0m6DA/DZsdweJdnkueYVUd7L8aA4JpZxrlCI/M7mDE/OGhEhgB
                  nFzSTrBjSFpT7DG66uy7oJeE+RgkXO7EWWOEglMPwaZgGgi1oZarv95VOx3uO8W8
                  L7+S/3AuHNUZQD4b5bpdYAmjXFwz6dl0mKiXAvVuP9E=
               </P>
               <Q xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
                  mFf8DiMVNFXy0vag9oNGNW/g4u0=
               </Q>
               <G xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
                  g8gRdNlq9EOTR2TjmVApqCAZAq3jEjOIxXbs8JBiZ+U7dV9geeXEy13GbYoP23Qr
                  apZQo+35diw+cMYPHjN+iUCwUkiGWv7/piAK+Ootfw03etL8XiVWjtL5NBof2CNp
                  wmAw7mrwmNG092y1e6HXSGMMZpaoth/P8xhsxCQsqI8=
               </G>
               <Y xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:foo="http://www.bar.org">
                  j0V14dc/I+okDAeG4ZbWUzb3HTFkEOC6feOMo5Dk218GcPqEKroVHaDBF9CmRV1v
                  B8MUOExB+6ZNHfcs5Vaw0HVn62YiEBzrmKikx6SxO4Dg9L8I5WbHn37vxUKvHs8r
                  7+rma3kpZQftTMiBpJ8XK8Z6jg8VhuJqo9yZZO+p3I0=
               </Y>
            </DSAKeyValue>
         </KeyValue>
      </KeyInfo>
   </Signature>
</doc>