changing node positions

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

changing node positions

FParsons
Hi! Is it correct that Xforms has no "built-in" action or function to
change the position of a child node? For example, change:

parent-Node
     child1
     child2
     child3

to:

parent-Node
     child2
     child1
     child3

Do you simply use xforms:insert ? Can someone provide an example?

Thanks for any help with this!

--Francis




--
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
-- Francis
Reply | Threaded
Open this post in threaded view
|

Re: changing node positions

Alessandro  Vernet
Administrator
Francis,

That's right: there is no "move" action in XForms. Instead, do a
<xforms:insert> (which works more like a "copy") followed by a
<xforms:delete>.

Alex

On Sun, May 23, 2010 at 5:39 PM, Francis Parsons <[hidden email]> wrote:

> Hi! Is it correct that Xforms has no "built-in" action or function to change
> the position of a child node? For example, change:
>
> parent-Node
>    child1
>    child2
>    child3
>
> to:
>
> parent-Node
>    child2
>    child1
>    child3
>
> Do you simply use xforms:insert ? Can someone provide an example?
>
> Thanks for any help with this!
>
> --Francis
>
>
>
>
> --
> 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, open-source, for the Enterprise -
http://www.orbeon.com/
My 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: changing node positions

Alistair Miles-2
There is a nice example of how to do moving items up and down within a
repeat in the Orbeon XForms sandbox [1], look for repeat-move.xhtml.

Cheers

Alistair

[1] http://www.orbeon.com/orbeon/source-viewer/xforms-sandbox/

On Mon, May 24, 2010 at 02:48:58PM -0700, Alessandro Vernet wrote:

> Francis,
>
> That's right: there is no "move" action in XForms. Instead, do a
> <xforms:insert> (which works more like a "copy") followed by a
> <xforms:delete>.
>
> Alex
>
> On Sun, May 23, 2010 at 5:39 PM, Francis Parsons <[hidden email]> wrote:
> > Hi! Is it correct that Xforms has no "built-in" action or function to change
> > the position of a child node? For example, change:
> >
> > parent-Node
> >    child1
> >    child2
> >    child3
> >
> > to:
> >
> > parent-Node
> >    child2
> >    child1
> >    child3
> >
> > Do you simply use xforms:insert ? Can someone provide an example?
> >
> > Thanks for any help with this!
> >
> > --Francis
> >
> >
> >
> >
> > --
> > 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, open-source, for the Enterprise -
> http://www.orbeon.com/
> My 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


--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health <http://cggh.org>
The Wellcome Trust Centre for Human Genetics
Roosevelt Drive
Oxford
OX3 7BN
United Kingdom
Web: http://purl.org/net/aliman
Email: [hidden email]
Tel: +44 (0)1865 287669


--
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: Re: changing node positions

FParsons
Thanks, I missed that one!
-- Francis