Re: applet access to instance data

I've just realised that I gave the XForms 1.1 reference without
thinking about it! The corresponding reference in XForms 1.0 is:

  <http://www.w3.org/TR/xforms/slice7.html#idl-getInstanceDocument>

Regards,

Mark

On 25/04/07, Mark Birbeck <mark.birbeck@x-port.net> wrote:
> Hi Iņaki,
>
> > I would like to know how to access from a applet to the instance data of an
> > XForms to be treated as an XML document.
>
> I don't fully understand the architecture, probably because you
> haven't said which XForms processor you are using.
>
> But if the model is that you want to include an applet in a form, and
> that applet will manage code signing, then I would suggest the best
> thing to do is call the getInstanceDocument() [1] method on your
> chosen XForms processor to gain access to an instance as a DOM, and
> then manipulate that. You can either manipulate it in place, or you
> could copy the signed result to a new instance (again using the
> getInstanceDocument() method).
>
> Either way, I would suggest that you still let XForms do the final
> submission; your applet should just do the signing.
>
> As to the 'when' of the signing, that will depend to some extent on
> the processor you are using. If I was doing it with formsPlayer, then
> I would use an extension function that is invoked in an xforms-submit
> event handler. Unfortunately, at the moment there is no standard way
> to set up extension functions, so there's little point in my going
> into the detail of how I'd do that, unless you are actually using
> formsPlayer. But hopefully there will be some convergence on the
> techniques used.
>
> I doubt that answers your question, but it might give you some ideas
> of where to start looking.
>
> Regards,
>
> Mark
>
>
> [1] <http://www.w3.org/TR/xforms11/#idl-getInstanceDocument>
>
> --
>   Mark Birbeck, formsPlayer
>
>   mark.birbeck@x-port.net | +44 (0) 20 7689 9232
>   http://www.formsPlayer.com | http://internet-apps.blogspot.com
>
>   standards. innovation.
>


-- 
  Mark Birbeck, formsPlayer

  mark.birbeck@x-port.net | +44 (0) 20 7689 9232
  http://www.formsPlayer.com | http://internet-apps.blogspot.com

  standards. innovation.

Received on Wednesday, 25 April 2007 10:04:13 UTC