This is what the input XSL file looks like:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<head>
<title>Results</title>
</head>
<body>
This is where the header would appear.<br></br>
<xsl:choose>
<xsl:when test="count(RESULT_SET)=0">
<font size="+1" color="red">
A serious error has occured. Please contact customer service at 888-555-1212.
</font>
<pre>
Please provide customer service with the following information:
In form getrec, no RESULT_SET element was
found in the XML document. THX1138.
</pre>
</xsl:when>
<xsl:when test="count(RESULT_SET/RESULT)=0">
No rows were returned.
</xsl:when>
<xsl:otherwise>
<table align="center" border="2">
<xsl:apply-templates/>
</table>
</xsl:otherwise>
</xsl:choose>
This is where the footer would appear, along with the
navigation bar.
</body>
</xsl:template>
<xsl:template match="RESULT">
<tr>
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of select="string('getrec?recnum=')"/><xsl:value-of select="RECNUM"/>
</xsl:attribute>
<xsl:value-of select="RECNUM"/></a>
</td>
<td>
<xsl:value-of select="INVNUM"/>
</td>
<td>
<xsl:value-of select="INVDATE"/>
</td>
<td>
<xsl:value-of select="AMOUNT"/>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>