[xslt] [PATCH] new crypto namespace and hash functions for libexslt



the attached patch implements a new crypto namespace for libexslt.
the following stylesheet shows the 3 implemented functions: md5sum,
sha1sum, and ripemd160sum:

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:crypto="http://exslt.org/crypto";
  extension-element-prefixes="crypto">

  <xsl:template match="foo/bar">
    md5sum=<xsl:value-of select="crypto:md5sum(.)"/>
    sha1sum=<xsl:value-of select="crypto:sha1sum(.)"/>
    ripemd160sum=<xsl:value-of select="crypto:ripemd160sum(.)"/>
  </xsl:template>

</xsl:stylesheet>

the patch makes libexslt and by extension ;) xsltproc dependent
on openssl. if this is acceptable, please accept this patch for inclusion.
if not, let me know what i can do to fix any blocking issues. thanks!

i hope in the future other crypto functions can be added to this namespace.

jr



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]