<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:dp="http://www.datapower.com/extensions"
    extension-element-prefixes="dp"
>
  <dp:input-mapping  href="store:///pkcs7-convert-input.ffd" type="ffd"/>


  <xsl:template match="/">

    <hash>
      <xsl:value-of 
        select="dp:hash-base64(
                  'http://www.w3.org/2001/04/xmlenc#sha256',
                  dp:binary-encode(/object/message/node())
                )"
      />
    </hash>

  </xsl:template>

</xsl:stylesheet>