<xsl:stylesheet xmlns:xsl="http://www.w3.org/
1999/XSL/Transform" version="1.0">
  <xsl:output method="html" version="4.0" />
    <xsl:template match="/">
       <html>
         <body>
               <xsl:choose>
               <xsl:when
test="descendant-or-self::processing-instruction('MSSQLError')">
                  <xsl:for-each
select="descendant-or-self::processing-instruction('MSSQLError')">
                     <H2><xsl:value-of select="." /></H2>
                  </xsl:for-each>
               </xsl:when>
               <xsl:otherwise>
                  <H2>No errors encountered</H2>
               </xsl:otherwise>
           </xsl:choose>
          </body>
      </html>
    </xsl:template>
</xsl:stylesheet>>