[exslt] new exslt namespace: crypto?

Joel Reed jreed at ddiworld.com
Mon May 3 09:21:13 MDT 2004


I've implemented md5sum, sha1sum, and ripemd160sum in libexslt
using a new namespace called "crypto". An example stylesheet
can be found below. I'd like to submit this code to the libexslt
project, and would like to see if anyone has feedback on the
use of a separate namespace, the namespace name, or function names.

i'm not subscribe to this list, so please cc: me.
thank you,

jr

<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> 

-- 
------------------------------------------------------------
Joel W. Reed                                    412-257-3881
----------   http://home.comcast.net/~joelwreed/  ----------



More information about the exslt mailing list