W3C home > Mailing lists > Public > www-forms@w3.org > June 2007

XForms and XML Signatures : How to get the presentation layer?

From: duryodhan <duryodhan125@gmail.com>
Date: Tue, 19 Jun 2007 15:26:31 +0530
Message-ID: <ecf35a1b0706190256t34eb0cf6r22b6c5028f676337@mail.gmail.com>
To: www-forms@w3.org

 I am trying to implement a XForms with XML Signatures. .

 First off , some basic questions :
   1. Shoud I sign the whole XHTML doc or just the XML Instance?
The whole XHTML doc seems like an overkill to me..
   Should I sign :(from the XForms wikibook e.g on Submit)
--------code ----------

<?xml version="1.0" encoding="UTF-8"?>
<MyData xmlns:xf="http://www.w3.org/2002/xforms"

or should I sign this :
--------------------code ---------------------------

      <title>XForms Submit Example</title>
         <xf:instance xmlns="">

         <xf:submission id="save" method="post" action="form.php" ref="/"/>
       <xf:submit submission="save">



I mean ... what should be signed exactly? If I sign only the instance
then there is still a huge vulnerability in the application, and it is
ugly to sign just the instance. See

I am a noob , so most of this must be obvious to you all already ...
my apologies ..

Now the crude solution that I am thinking of , requires that the XML
to be signed be sent to the server first.

If I want to sign the presentation layer (XHTML here) + XML Instance
, how do I send it to the server ? ( I am using the mozilla XForms

Specifically, in the previous link, Dr. Boyer had said ...

Moreover, some implementations have added XML DSig as custom
extensions, but they are
uniformly signing data only because it is difficult or impossible to
get access to the presentation layer.

That was 2003 ... is it easier now to get access to the presentation layer?

AFAIK, there is no easy way to do XML Signing on the client side , so
my crude solution is the only way I could think off.

Received on Tuesday, 19 June 2007 09:56:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:20 UTC