- From: David Landwehr <david.landwehr@picoforms.com>
- Date: Fri, 01 Jun 2007 08:48:17 +0200
- To: "C. M. Sperberg-McQueen" <cmsmcq@acm.org>
- CC: www-forms@w3.org
- Message-ID: <465FC131.5030606@picoforms.com>
Hi, Just for fun I made an example that sorts an instance in XForms using XSLT in Firefox. The example is attached to this mail. As you will see the stylesheet itself is also an instance document (however is of course not required to be so). Because the stylesheet is an instance it is possible to change the behavior by binding XForms control to the stylesheet and change stuff like the XPath expression used for sorting or the datatype and so on. It is also possible to have a repository of stylesheets and retrieve them using XForms submissions. I hope you will agree that using XSLT and a small javascript is much easier and more maintanable compared to haven written the entire sorting routine in script. Best regards, David C. M. Sperberg-McQueen skrev: > > > On 31 May 2007, at 01:16 , David Landwehr wrote: > >> ... >> You can do sorting in javascript if the Document is exposed and >> javascript is available in the implementation. >> >> What implementation are you using? > > Thank you; this is helpful. > > I'm currently working with Firefox and the Mozilla XForms > plug-in, but since my immediate goals are learning and > building things for myself rather than others, the only > constraint on what I use is that it needs to run on my > system under Mac OS X. > > -CMSMcQ > >
Attachments
- application/xhtml+xml attachment: sortwithxslt.xhtml
Received on Friday, 1 June 2007 06:48:57 UTC