W3C home > Mailing lists > Public > www-forms@w3.org > April 2005

How to change the order of repeat-items?

From: T. V. Raman <tvraman@us.ibm.com>
Date: Fri, 8 Apr 2005 14:16:50 -0700
Message-ID: <16982.62658.301619.902332@bubbles.almaden.ibm.com>
To: suzan.foster@nerocmediaware.nl
Cc: www-forms@w3.org



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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:00 GMT