I have a very simple XML file and used a very simple XSL to form the doc to display in a table form on a HTML page. It displayed okay until I added the xsl:sort to the xsl file, it nows gave me error message "unspecified error" and the page is not displayed at all. The xsl:sort is so simple that I really could not figure out what's wrong with it, can any one help?
Thank you
********************
The XML Document is :
<?xml version="1.0" ?>
<Customers>
<customer>
<name>Reggie</name>
<address>202 East Haverbrook</address>
<phone>4055551234</phone>
</customer>
<customer>
<name>Jim</name>
<address>3 boolkiel av</address>
<phone>231837</phone>
</customer>
<customer>
<name>Adrian</name>
<address>88 Emmer Green</address>
<phone>168888</phone>
</customer>
<customer>
<name>Kenny</name>
<address>Gee House</address>
<phone>098787</phone>
</customer>
</Customers>
The XSL file is:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="
<xsl:template match="/">
<html>
<body>
<h1>events</h1>
<table border="1" cellpadding="2">
<tr>
<td>name</td>
<td>address</td>
<td>phone</td>
</tr>
<xsl:for-each select="Customers/customer">
<xsl:sort select="name"/>
<tr>
<td><xsl:value-of select="name" /></td>
<td><xsl:value-of select="address" /></td>
<td><xsl:value-of select="phone" /></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Thank you
********************
The XML Document is :
<?xml version="1.0" ?>
<Customers>
<customer>
<name>Reggie</name>
<address>202 East Haverbrook</address>
<phone>4055551234</phone>
</customer>
<customer>
<name>Jim</name>
<address>3 boolkiel av</address>
<phone>231837</phone>
</customer>
<customer>
<name>Adrian</name>
<address>88 Emmer Green</address>
<phone>168888</phone>
</customer>
<customer>
<name>Kenny</name>
<address>Gee House</address>
<phone>098787</phone>
</customer>
</Customers>
The XSL file is:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="
<xsl:template match="/">
<html>
<body>
<h1>events</h1>
<table border="1" cellpadding="2">
<tr>
<td>name</td>
<td>address</td>
<td>phone</td>
</tr>
<xsl:for-each select="Customers/customer">
<xsl:sort select="name"/>
<tr>
<td><xsl:value-of select="name" /></td>
<td><xsl:value-of select="address" /></td>
<td><xsl:value-of select="phone" /></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>