W3C home > Mailing lists > Public > www-forms@w3.org > September 2006

Re: multiple instance/model submission

From: Jason <jeacott@hardlight.com.au>
Date: Fri, 22 Sep 2006 18:27:35 +0930
Message-ID: <4513A57F.7020604@hardlight.com.au>
To: Erik Bruchez <ebruchez@orbeon.com>, www-forms <www-forms@w3.org>

interesting - thanks for the tip!

Erik Bruchez wrote:
> 
> Jason wrote:
>>
>> Thanks Victor,
>>     you are of course correct, but it wouldnt be too tough for the 
>> spec to allow the wrapping of the submissions with some arbitrary 
>> element, or to use the model element name as a default.
> 
> A possibility would be to submit multiple XML documents with 
> multipart/mixed. Unfortunately XForms does not support building such 
> messages at the moment, but I can see a use case.
> 
> But with XForms 1.1 though, you could dynamically construct an instance 
> that contains other instances under a common root element, with the new 
> and improved xforms:insert action's @origin attribute:
> 
> <xforms:instance id="i1">
>   ...
> 
> <xforms:instance id="i2">
>   ...
> 
> <xforms:instance id="result">
>   <result/>
> </xforms:instance>
> 
> <xforms:insert context="instance('result')" nodeset="*"
>   origin="instance('i1')"/>
> <xforms:insert context="instance('result')" nodeset="*"
>   origin="instance('i2')"/>
> 
> -Erik
> 
Received on Friday, 22 September 2006 08:57:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:06 GMT