RE: Questions about switching orders of instance's elements.

If you absoultely must do it today, you can ask your server to do it
with <xf:submission action="/cgi-bin/swap?A=/R/A;B=/R/B" method="post"
replace="instance" instance="model" /> and a suitable server script
called swap.

If you need to be able to specify the elements to swap in a more general
way, you'll need to enclose your entire instance inside another piece of
XML which contains the names (paths?) of the elements to swap, and
submit that whole instance; or perhaps you can put attributes on R.
Leigh.

-----Original Message-----
From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On
Behalf Of Kisub Song
Sent: Wednesday, November 29, 2006 6:34 PM
To: www-forms@w3.org
Subject: Questions about switching orders of instance's elements.


Hi~

I have a question about XForms.
Are there any ways to change the order of the structure of XML instances
in
XForms code?

For example,
I want to change this instance...
<xforms:instance id="model">
  <R>
    <A>...</A>
    <B>...</B>
    <C>...</C>
  </R>
</xforms:instance>
into this form...
<xforms:instance id="model">
  <R>
    <B>...</B>
    <A>...</A>
    <C>...</C>
  </R>
</xforms:instance>
when the user presses a button or does some other action.
....
As you see, the order of elements are changed, locations of A and B are
swapped.
How should the XForms code be made to work like it?

Plz tell me 

Kisub Song
The Master's Course in Computer Science
Internet Computing Laboratory at Yonsei University
C503 Engineering Building, 134 Shinchon-Dong Seodaemoon-Gu Seoul 120-749
South Korea
Tel: +82-2-2123-3878

Received on Tuesday, 5 December 2006 01:39:29 UTC