Re: sorting and grouping in XForms?

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

Received on Friday, 1 June 2007 06:48:57 UTC