Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xsl:sort
Message
From
20/05/2003 01:14:22
Anita Dandekar
Master Computech Pvt. Ltd.
Mumbai, India
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Xsl:sort
Miscellaneous
Thread ID:
00790288
Message ID:
00790288
Views:
51
How to use xsl:sort in XML file?

I tried that but it was giving me error
I used in xml file following tag.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

or 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

or 

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">


<?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>
<head>
<title>Atomic Number vs. Atomic Weight</title>
</head>
<body>
<h1>Atomic Number vs. Atomic Weight</h1>
<table>
<tr>
<th>Element</th>
<th>Atomic Number</th>
<th>Atomic Weight</th>
</tr>
<xsl:for-each select="PERIODIC_TABLE/ATOM">
<xsl:sort select="ATOMIC_NUMBER"/>
<tr>
<td><xsl:value-of select="NAME"/></td>
<td><xsl:value-of select="ATOMIC_NUMBER"/></td>
<td><xsl:value-of select="ATOMIC_WEIGHT"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
it gives me unspecified error.

Please give me some solution as early as possible.

Thanks

Regards

Anita
Reply
Map
View

Click here to load this message in the networking platform