Signing a static RDF document using XML-SIG and PGP


<Signature Id="MyFirstSignature" xmlns="http://www.w3.org/2000/09/xmldsig#">
 <SignedInfo>
   <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
   <SignatureMethod  Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>

   <Reference URI="http://heddley.com/edd/foaf.rdf" />

     <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
    <DigestValue>j6lwx3rvEPO0vKtMup4NbeVu8nk=</DigestValue>
   </Reference>
 </SignedInfo>
 <SignatureValue>MC0CFFrVLtRlk=...
 </SignatureValue>

 <KeyInfo>
   <PGPData>
     <PGPKeyId>123k49d9rk...</PGPKeyId>>
   </PGPData>
 </KeyInfo>

 </Signature>