To check if I understand your requirements:
1. you will have your XML transformed into HTML
2. user will see HTML in his/her browser and should be able to choose parameters for sorting dynamically. Say, it will be a table and user can sort it by clicking on column's header.
3. column's header (whether link, or button, or something else) will be defined with ONCLICK = �<some code for sorting>� attribute.
Your question is how you write this <some code for sorting>, which will supposedly call XSL for sorting?
My understanding is: after XML -> HTML transformation is performed, browser is unaware that a source of HTML was XML/XSLT gang, it is just HTML, like any other �pure HTML� file. That means you cannot call XSL functions directly, you have to use some intermediate software layer, like
Cocoon.
However, if somebody knows a way to call XSLT processing from resulting HTML, please, correct me

[This message has been edited by Mapraputa Is (edited March 16, 2001).]