Hi guys,
Im still fairly new to XML and need help on the following problem.
I know how to sort elements alphabetically using my XSL stylesheet. All I do is use <xsl:sort> in the template.
I want some buttons or links on my XML page that will dynamically change the sort order.
For example, if i have the following data
Book A (2004)
Book B (2002)
Given by
<books>
<title>Book A
<year>2004</year>
</title>
<title>Book B
<year>2002</year></title>
</books>
I want a button that says 'sort by title' which when clicked, will sort the list by title, and a button that says 'sort by year' which when clicked, orders the list by year.
Is this possible?
Any help would be appreciated.
Thanks
Im still fairly new to XML and need help on the following problem.
I know how to sort elements alphabetically using my XSL stylesheet. All I do is use <xsl:sort> in the template.
I want some buttons or links on my XML page that will dynamically change the sort order.
For example, if i have the following data
Book A (2004)
Book B (2002)
Given by
<books>
<title>Book A
<year>2004</year>
</title>
<title>Book B
<year>2002</year></title>
</books>
I want a button that says 'sort by title' which when clicked, will sort the list by title, and a button that says 'sort by year' which when clicked, orders the list by year.
Is this possible?
Any help would be appreciated.
Thanks