W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > May 2008

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

From: Innovimax SARL <innovimax@gmail.com>
Date: Sat, 3 May 2008 15:46:44 +0200
Message-ID: <546c6c1c0805030646x61ae40a5n30635fb9cffab2f0@mail.gmail.com>
To: "Norman Walsh" <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 3 May 2008 13:47:18 GMT