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
<http://rdcpro.com/xmldev/filterandsort/demo.html>
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
this....
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...
**********************************cdCatalog.xml*****************************
**************************
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?>
<!-- Edited with XML Spy v4.2 -->
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<country>UK</country>
<company>CBS Records</company>
<price>9.90</price>
<year>1988</year>
</cd>
</catalog>
**********************************cdCatalog.xml*****************************
**************************
********************************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="/">
<html>
<body>
<h2>My CD Collection</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th align="left">Title</th>
<th align="left">Artist</th>
</tr>
<xsl:for-each select="catalog/cd">
<tr>
<td><xsl:value-of select="title" /></td>
<td><xsl:value-of select="artist" /></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template></xsl:stylesheet>
****************************************************************************
*******************************
Regards,
Riju
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list