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

I've seen a pretty good use case for a sortable version of both repeat and
itemset -- for an example, look at any tabular choice list such as a list
view of email messages.   An extension function that returns a sorted set of
nodes might be a good start, as dependency tracking would ensure that the
view is refreshed when the sort order predicate changes.  Borrowing from
XSLT sorting keys might also be a productive path.

Leigh.

-----Original Message-----
From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On Behalf
Of T. V. Raman
Sent: Monday, April 11, 2005 6:00 AM
To: suzan.foster@nerocmediaware.nl
Cc: tvraman@almaden.ibm.com; www-forms@w3.org
Subject: Re: How to change the order of repeat-items?




First off scripting and XForms are not mutually exclusive. For this case, I
would definitely write the sorter in JavaScript --- you're still keeping
your design clean and maintainable since the scripting is not tangled up in
the rest of your document.


>>>>> "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.

--
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, 15 April 2005 22:23:13 UTC