W3C home > Mailing lists > Public > www-forms@w3.org > February 2004

Réf. : RE: Sort

From: Dominique ARNOU <dominique.arnou@edfgdf.fr>
Date: Mon, 23 Feb 2004 14:54:17 +0100
To: www-forms@w3.org
Message-ID: <OFC4AF6A3E.37E5DA5E-ON41256E43.004BCF0D@notes.edfgdf.fr>


Mark,

Thanks for your response, but I don't know where is the library for this
function, how add it in my configuration ? Can you explain that ? Where can
I find generic help for these extension functions (HTMLserialize,
bubble,...) ?

Dominique





mark.birbeck@x-port.net@w3.org on 23/02/2004 13:00:49

Envoyé par :      www-forms-request@w3.org


Pour : Dominique ARNOU/SDP/EMC/EDFGDF/FR@EDFGDF
cc :   www-forms@w3.org
Objet :     RE: Sort



Hi Dominique,

> Is there anyway that I can sort elements into an instance
> without submit it to server ? I understand that xslt can do
> that, but I want to stay on the same form after sorting my
> array... can xforms does that ?

There are plans to add such features to the core of XForms. In the
meantime, if your implementation allows it, you could use extension
functions as a temporary solution:

  <model functions="sort:bubble">
    <instance src="http://www.somedata.com/x.xml" />
    <bind id="nsSorted" nodeset="sort:bubble(/a/b, order)" />
  </model>
  .
  .
  .
  <select1 ref="order">
    <label>What order ...</label>
    <item>
      <label>Ascending</label>
      <value>asc</value>
    </item>
    <item>
      <label>Descending</label>
      <value>desc</value>
    </item>
  </select1>

  <repeat bind="nsSorted">
    ...
  </repeat>


Regards,

Mark


Mark Birbeck
CEO and CTO
x-port.net Ltd.

http://www.formsPlayer.com/
Received on Monday, 23 February 2004 09:06:04 GMT

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