Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2006, 04:40 PM
Registered User
 
Join Date: Jan 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting point labels on stacked column chart jwbus2004 Reporting Services 0 March 3rd, 2008 12:53 AM
Sorting a column yogeshyl Excel VBA 1 December 10th, 2007 07:09 PM
Multi column combo lists c_olinrb Access 4 July 21st, 2005 09:21 AM
sorting lists treasacrowe Classic ASP Databases 2 August 20th, 2004 06:23 AM
sorting a column alphabetically Adam H-W SQL Server 2000 8 November 11th, 2003 09:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.