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

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 UTC