Re: xf:duplicate emulation

On 12/13/05, Alexander Anokhin <ava@vaz.ru> wrote:
>
> John Boyer wrote:
> >
> > In the next day or two, the new 1.1 working draft will appear.
> > In it, you'll see that we've scrapped duplicate and destroy in favor of
> > simple modifications of insert and delete that cover the functionality
> > of duplicate and destroy.
> >
> > The main problems for insert were how to identify a nodeset that
> > could become empty and how to get a prototypical subtree from
> > someplace else.
> >
> > By simply adding the new attributes to insert rather than inventing a
> > new action, we found we could achieve the desired results.  We also
> > found that insert's separation of the target location into nodeset, at
> > and position made it easier than was the case with duplicate to
> > express the most common use case of inserting a new homogeneous
> > collection item into a repeat after the currently indexed repeat item.
> > Also, an insert with a target of the root document element of the
> > instance results in replacing the instance.
> >
> > Details and examples to be published shortly.
> >
>
> Thanks for quick reply, John.
> Completly agree, but the problem is to achieve such functionality in
> XForms 1.0 only, since very few client-side processors implements 1.1 WD
> (afaik FormsPlayer only?). As i see for now it can't be done without
> using of Javascript to make FireFox XForms extension behave like in 1.1WD.


The problem is that it is only a working draft, and as you can see duplicate
has now disappeared. So for Firefox we aim to implement the XForms
1.0standard first.

We do have f.x. the SOAPAction handling in our experimental builds, and we
will probably add more 1.1 soon, but still probably only to the experimental
builds.

--
... Allan

Received on Wednesday, 14 December 2005 11:18:00 UTC