Re: add p:encrypt and p:decrypt optional step

Ok let's try

We could say that we have

<p:declare-step type="p:encrypt">
   <p:input port="source" primary="true"/>
   <p:output port="result"/>
   <p:input port="parameters" kind="parameter"/>
   <p:option name="match" required="true"/> <!-- XSLTMatchPattern -->
  <p:option name="granularity" required="true"/><!-- 'content' or 'element'
-->
</p:declare-step>

match option would say which elements you want to encrypt and granularity
option would say if you encrypt the matched element or its content

<p:declare-step type="p:decrypt">
   <p:input port="source" primary="true"/>
   <p:output port="result"/>
   <p:input port="parameters" kind="parameter"/>
   <p:option name="match" required="true"/> <!-- XSLTMatchPattern -->
</p:declare-step>

match would match perticular node {
http://www.w3.org/2001/04/xmlenc#}EncryptedData (if we stick to XML
Encryption spec, but we don't need to) and would decrypt them

Mohamed

-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €

Received on Saturday, 3 May 2008 13:47:18 UTC