Delete Bug?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Delete Bug?

Jim Logan-3
In a nightly build I'm having to use
        <xforms:action
xxforms:iterate="instance('unselected-categories')/*">
            <xforms:delete nodeset="context()" />
        </xforms:action>

instead of
            <xforms:delete nodeset="instance('unselected-categories')/*" />

Is that a bug, or am I missing something?

Thanks,
-Jim



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Delete Bug?

Alessandro Vernet
Administrator
Jim,

On Thu, Aug 7, 2008 at 11:16 AM, Jim Logan <[hidden email]> wrote:
> In a nightly build I'm having to use
>       <xforms:action xxforms:iterate="instance('unselected-categories')/*">
>           <xforms:delete nodeset="context()" />
>       </xforms:action>

You can rewrite the above as:

<xforms:delete xxforms:iterate="instance('unselected-categories')/*"
nodeset="."/>

which is more compact.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Delete Bug?

Erik Bruchez
Administrator
> You can rewrite the above as:
>
> <xforms:delete xxforms:iterate="instance('unselected-categories')/*"
> nodeset="."/>
>
> which is more compact.

Note that xforms:delete, as per XForms 1.1, *should* delete all the  
nodes in the node-set, but we haven't yet implemented this.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws