I'm using some classic ASP and XSLT to select records from an XML file.
Can someone please show me how to modify the xsl below to return a statement of "no records found" if there is no matches for for the xsl:when query?
Thanks.
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<xsl:template match="rss/channel">
<xsl:apply-templates select="item">
<xsl:sort order="ascending" select="title"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="item">
<xsl:choose>
<xsl:when test="alpha='d'">
<a href="{link}"><xsl:value-of select="title" /></a>
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>