RE: How to change the order of repeat-items?

An interesting place to start this investigation would be to see
if exslt.org has already gone down this (x)path of sorting nodes.

>>>>> "Leigh" == Leigh L Klotz, <Leigh.Klotz@pahv.xerox.com> writes:
    Leigh> I've seen a pretty good use case for a sortable
    Leigh> version of both repeat and itemset -- for an example,
    Leigh> look at any tabular choice list such as a list view of
    Leigh> email messages.  An extension function that returns a
    Leigh> sorted set of nodes might be a good start, as
    Leigh> dependency tracking would ensure that the view is
    Leigh> refreshed when the sort order predicate changes.
    Leigh> Borrowing from XSLT sorting keys might also be a
    Leigh> productive path.
    Leigh> 
    Leigh> Leigh.
    Leigh> 
    Leigh> -----Original Message----- From:
    Leigh> www-forms-request@w3.org
    Leigh> [mailto:www-forms-request@w3.org] On Behalf Of
    Leigh> T. V. Raman Sent: Monday, April 11, 2005 6:00 AM To:
    Leigh> suzan.foster@nerocmediaware.nl Cc:
    Leigh> tvraman@almaden.ibm.com; www-forms@w3.org Subject: Re:
    Leigh> How to change the order of repeat-items?
    Leigh> 
    Leigh> 
    Leigh> 
    Leigh> 
    Leigh> First off scripting and XForms are not mutually
    Leigh> exclusive. For this case, I would definitely write the
    Leigh> sorter in JavaScript --- you're still keeping your
    Leigh> design clean and maintainable since the scripting is
    Leigh> not tangled up in the rest of your document.
    Leigh> 
    Leigh> 
    >>>>>> "Suzan" == Suzan Foster
    >>>>>> <suzan.foster@nerocmediaware.nl> writes:
    Suzan> T. V. Raman wrote: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> I take it that defining an xpath extension is
    Suzan> implementation specific?  Is it possible to define
    Suzan> such functions using javascript for instance within
    Suzan> <script/> elements of the hosting xhtml document? I'm
    Suzan> afraid I can't seem to see how scripting fits in with
    Suzan> the xforms model.
    Suzan> 
    Suzan> Regards, Suzan Foster.
    Leigh> 
    Leigh> -- Best Regards, --raman
    Leigh> ------------------------------------------------------------
    Leigh> T. V. Raman: PhD (Cornell University) IBM Research:
    Leigh> Human Language Technologies Architect: RDC ---
    Leigh> Conversational And Multimodal WWW Standards Phone: 1
    Leigh> (408) 927 2608 T-Line 457-2608 Fax: 1 (408) 927 3012
    Leigh> Cell: 1 650 799 5724 Email: tvraman@us.ibm.com WWW:
    Leigh> http://almaden.ibm.com/u/tvraman
    Leigh> (google:raman+labrador) AIM: emacspeak GPG:
    Leigh> http://www.almaden.ibm.com/cs/people/tvraman/raman-almaden.asc
    Leigh> Snail: IBM Almaden Research Center, 650 Harry Road San
    Leigh> Jose 95120

-- 
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 Saturday, 16 April 2005 01:17:11 UTC