Subject:Dynamic Sorting with XSL Author:Shaunna Shelton Date:11 May 2005 06:33 PM
I have the following XSL stylesheet transforming an XML file. This is being done via ColdFusion which utilizes Xalan, as I understand it.
The sorting is harcoded, but I need to figure out how to make it dynamic - so that when a user clicks one of the headings (File Name, Author, etc) it will sort the data by whatever option they chose. I understand you must declare a parameter and then test for the parameter's value, but am not sure of the syntax. I would be passing the parameter in a query string like so, ?sortby=FileName.