Thanks for this. It's a relief to know that there is nothing fundamentally wrong with the ASP!
My XML file can be found at
http://www.techybits.net/ccsl/data/service.xml
My XSLT is as follows ...
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:param name="Chapel"/>
<html>
<body>
<h1>Service in Detail for SID:172 --- <xsl:value-of select="$Chapel"/></h1>
<xsl:for-each select="CHAPELDATA/SERVICE">
<xsl:sort select="field[@id='Date']"/>
<xsl:value-of select="$Chapel"/>
<xsl:if test="field[@id='SERVICEID']='SID:172'">
<table border="1" cellpadding="2">
<xsl:for-each select="field">
<tr><td><xsl:value-of select="@id"/></td>
<td><xsl:value-of select="field_value"/></td></tr>
</xsl:for-each>
</table>
</xsl:if>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>