Re: insert and delete contexts

I think they mean to say the same thing.

This said, `<insert>` and `<delete>` should probably not even have to say
how the context is computed. They probably do because historically, only
these two actions had a `context` attribute. Then we expanded support for
`context` more generally.

-Erik

On Thu, Dec 8, 2016 at 3:20 AM, Steven Pemberton <steven.pemberton@cwi.nl>
wrote:

> The insert context for aan <insert/> is described so:
> https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The
> _insert_Element
>
> "The insert context is determined:
> * if the context attribute is given, it is evaluated using the in-scope
> evaluation context, and the first-item rule is applied;
> * otherwise the in-scope evaluation context is used.
>
> If the result is the empty sequence, the insert action has no effect."
>
> <delete/> on the other hand says:
> https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The
> _delete_Element
>
> "The delete context is determined: it is set to the in-scope evaluation
> context, possibly overridden by the context attribute if that attribute is
> present. If the result is the empty sequence, the delete action has no
> effect."
>
> It sounds like they intend to describe the same thing, but lack of the
> first item rule in the second makes me wonder.
>
> Any advice?
>
> Steven
>
>

Received on Wednesday, 14 December 2016 05:48:02 UTC