How to change the order of repeat-items?

This is a good question.

You would need to rearrange the instance nodes, and the easiest
way to do this would be via an xpath extension function that
performs the sort 


>>>>> "Suzan" == Suzan Foster <suzan.foster@nerocmediaware.nl> writes:
    Suzan> How do you change the order of repeat-items? I am
    Suzan> developing an application which often needs to reorder
    Suzan> a sequence, and I can't see any way of doing this with
    Suzan> actions. Do I need to use scripting for this, and has
    Suzan> anyone a good example of using scripting in xforms?
    Suzan> Also, how do I insert an xml fragment into a repeat
    Suzan> which is empty? As soon as I remove the last item in a
    Suzan> repeat the insert doesn't work any more. I am using
    Suzan> Netscape's IE plugin, xform document attached.
    Suzan> 
    Suzan> Regards, Suzan Foster.

-- 
Best Regards,
--raman
------------------------------------------------------------
T. V. Raman:  PhD (Cornell University)
IBM Research: Human Language Technologies
Architect:    RDC --- Conversational And Multimodal WWW Standards
Phone:        1 (408) 927 2608   T-Line 457-2608
Fax:        1 (408) 927 3012     Cell: 1 650 799 5724
Email:        tvraman@us.ibm.com
WWW:      http://almaden.ibm.com/u/tvraman      (google:raman+labrador)
AIM:      emacspeak
GPG:          http://www.almaden.ibm.com/cs/people/tvraman/raman-almaden.asc
Snail:        IBM Almaden Research Center,
              650 Harry Road
              San Jose 95120

Received on Friday, 8 April 2005 21:16:40 UTC