Sorting lists by clicking column labels
Ok, it's easy to sort using xsl:sort inside an xsl:for-each loop. What is not so simple is how I can use this feature such that a user can click a column label to sort a list by that columns value.
Currently, I dish out the HTML to the client through a php page which typically does XML/XSLT translations as follows:
$xsl = new XSLTProcessor();
$xsl->importStyleSheet(...);
$xsl->transformToXML(...);
Obviously, if I had access to the request object inside the style sheet I load through importStyleSheet() I could accomplish what I'm trying to achieve quite simple.
Is there a way - or perhaps better put: is there another way?
|