deleting multiple elements with xforms:delete?

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

deleting multiple elements with xforms:delete?

Jean Luc-2
Hello,
 
Is it possible to delete multiple model elements with xforms:delete?
 
http://www.orbeon.com/ops/doc/reference-xforms-ng#d114e2124 mentions only one element (whose position is given in the "at" attribute). What options are available if you want to delete multiple elements (a homogenous collection is fine for my case, I need to delete all <attribute> subelements under <attributes>)?
 
Is there anything simpler than a loop?
 
Thanks,
JL


--
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: deleting multiple elements with xforms:delete?

Erik Bruchez
Administrator
Solutions we have used:

   <xforms:delete context="attributes" while="attribute"  
nodeset="attribute"/>

or:

   <xforms:delete xxforms:iterate="attributes/attribute" nodeset="."/>

But we really need to fix xforms:delete to delete all the nodes, this  
way you will be able to write simply:

   <xforms:delete nodeset="attributes/attribute"/>

-Erik

On Apr 24, 2008, at 12:53 PM, Jean Luc wrote:

> Hello,
>
> Is it possible to delete multiple model elements with xforms:delete?
>
> http://www.orbeon.com/ops/doc/reference-xforms-ng#d114e2124 mentions  
> only one element (whose position is given in the "at" attribute).  
> What options are available if you want to delete multiple elements  
> (a homogenous collection is fine for my case, I need to delete all  
> <attribute> subelements under <attributes>)?
>
> Is there anything simpler than a loop?
>
> Thanks,
> JL
>
> --
> 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
--
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