XSLT and sort a column

  • Thread starter RicercatoreSbadato
  • Start date
R

RicercatoreSbadato

I want to load a table with 2 columns from an xml file.

Is it possible with xslt to sort the columns by clicking on their
header ?
 
J

Joseph Kesselman

RicercatoreSbadato said:
Is it possible with xslt to sort the columns by clicking on their
header ?

XSLT doesn't know anything about clicks; it's essentially a batch
process. Feed it a document and a stylesheet, get a new document out.

XSLT does have sort operations, so if you can use the click to cause an
appropriate stylesheet to run, you could write a stylesheet which will
perform appropriate sorting.
 
J

Joseph Kesselman

(Or you could have your stylesheet generate its output including the
appropriate scripting to sort on the client -- but that starts with
someone writing those scripts and deciding what the page that includes
them should look like, then writing the stylesheet to generate the page
that way.)
 
R

RicercatoreSbadato

Thanks, how can I manage the click? i'd like ot work only at client
side..
 
J

Joe Kesselman

RicercatoreSbadato said:
Thanks, how can I manage the click? i'd like ot work only at client
side..

In that case, you're talking about browser behaviors -- HTML/XHTML
scripting, rather than XML per se.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top