W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > October 2007

Proposed new step: p:hash

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 18 Oct 2007 07:34:51 -0400
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2ejfsejvo.fsf@nwalsh.com>
The p:hash step returns the hash of a value:

<p:declare-step type="px:sha1">
  <p:output port="result"/>
  <p:option name="value" required="true"/>
  <p:option name="algorithm" required="true"/>
</p:declare-step>

Returns a <c:result> containing the value hashed according to the requested
algorithm. The 'SHA' and 'MD5' algorithms are required, others are
implementation defined. It is a dynamic error to request an algorithm that
is not supported.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Men are more like the times they live
http://nwalsh.com/            | in than they are like their
                              | fathers.--Ali Ibn-abi-talib

Received on Thursday, 18 October 2007 11:35:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:42 GMT