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

Why doesnt Xforms allow submission responses to target specified model.instance.node replacement?

From: Jason <jeacott@hardlight.com.au>
Date: Fri, 23 Jun 2006 17:17:04 +0930
Message-ID: <449B9C78.8090200@hardlight.com.au>
To: www-forms@w3.org

Hi all,
	I keep running into this and wishing that Xforms supported it.
Is there any reason why as part of the xforms submission element there 
isn't or couldn't be the option for something like:
<xf:submission id="dostuff" action="someaction" method="post" 
replace="instance('somethingotherelse')/response" 
ref="instance('myxmlservicesblock')//getsomething" />

this bit:
  replace="instance('somethingotherelse')/response"

is what I'm interested in.
would be mega handy for returning error messages and other info a user 
might be interested in without having to be sure to collect the the 
entire submitted instance + any extra stuff for every submission that 
might have extra info attached.
It would also make using soap etc much easier because a bunch of 
preconfigured soap 'templates' could then be easilly used and reused. 
the only way I know to do this currently is to submit an instance 
containing a soap request with replace="instance" then do something with 
the result, at which point you cant resubmit if you want to because your 
request is gone.(or can you? is there a way?)

maybe this would work - havent tried it and it sounds horrible.
maybe when you want to do the submission again you could delete the 
instance root and then create a new one so that your original "default" 
xml gets rebuilt? would that work?

just a question - it doesn't seem to me that this kind of addition would 
violate the xforms ethos at all.

any thoughts?
Regards
Jason
Received on Friday, 23 June 2006 07:47:15 GMT

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