Re: replace="instance" and the instance doesn't exist

I am not sure the spec says.

If this happens, our implementation dispatches an `xforms-submit-error`
event with a `target-error`, which was specified in XForms 1.1 but seems to
have disappeared from 2.0.

The following should produce the same error if possible:

- instance="missing-instance"
- targetref="instance('missing-instance')"

-Erik

On Mon, Apr 13, 2020 at 7:43 AM Steven Pemberton <steven.pemberton@cwi.nl>
wrote:

>
>
> https://www.w3.org/community/xformsusers/wiki/XForms_2.0#Replacing_Data_with_the_Submission_Response
>
> What should happen if I have a submission
>
>     <submission ... replace="instance" instance="foobar"/>
>
> and foobar doesn't exist (or if it isn't an instance)?
>
> Steven
>
>

Received on Monday, 13 April 2020 18:18:56 UTC