[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Dynamic Sorting of XML Data

Subject: [xsl] Dynamic Sorting of XML Data
From: Riju Abraham <R.Abraham@xxxxxxxxxxxx>
Date: Mon, 12 Jan 2004 19:01:15 +0300

Hi All...

I want to be able to Dynamically sort my xml data according to which col
header i click .Hope I am clear. 
I want to acheive this with an XML and an XSL file ONLY.... 
if  u go to this link 
u can see it to be done.But they have used an html page also.I want to
implement the html code in the the XSL File.I am not sure whether I can do
Please revert ASAP if u are having any Idea.
I am not sure whether my requirement can be acheived with an XML and an XSL
file ONLY....

Any other Idea is also welcome...


<?xml version="1.0" encoding="ISO-8859-1"?> 
<?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?>
<!-- Edited with XML Spy v4.2 -->
		<title>Empire Burlesque</title>
		<artist>Bob Dylan</artist>
		<title>Hide your heart</title>
		<artist>Bonnie Tyler</artist>
		<company>CBS Records</company>

********************************1My CDCatalog.xsl File is

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
    <h2>My CD Collection</h2> 
    <table border="1">
      <tr bgcolor="#9acd32">
        <th align="left">Title</th> 
        <th align="left">Artist</th> 
      <xsl:for-each select="catalog/cd">
        <td><xsl:value-of select="title" /></td>
        <td><xsl:value-of select="artist" /></td>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread