<xsl:if test="count(//program) = 0">
<xsl:text>No suitable programs found </xsl:text>
</xsl:if>
+ <xsl:apply-templates select="messages"/>
</body>
</html>
</xsl:template>
<xsl:template name="programTable">
+ <p>
<table align="left" cellpadding="5">
<!--
<tr align="left">
<xsl:apply-templates select="program"/>
</table>
<br clear="left"/>
+ </p>
</xsl:template>
<xsl:template match="recorded">
<xsl:choose>
<xsl:when test="@result = 'OK'">
<xsl:text>Successfully recorded programs </xsl:text>
+ <xsl:call-template name="programTable"/>
</xsl:when>
<xsl:when test="@result = 'DUPLICATE'">
<xsl:text>Already recorded programs</xsl:text>
+ <xsl:call-template name="programTable"/>
</xsl:when>
<xsl:when test="@result = 'CONFLICT'">
<xsl:text>Conflicts with other recorded programs</xsl:text>
+ <xsl:call-template name="programTable"/>
</xsl:when>
<xsl:when test="@result='ERROR'">
<xsl:text>Programs that could not be recorded for
technical reasons.</xsl:text>
+ <xsl:call-template name="programTable"/>
</xsl:when>
</xsl:choose>
</h2>
- <p>
- <xsl:if test="not(@result='OLDSHOW')">
- <xsl:call-template name="programTable"/>
- </xsl:if>
- </p>
</xsl:template>
<xsl:template name="addProgramInfo">
<h3>Category: <xsl:value-of select="@name"/></h3>
<xsl:call-template name="programTable"/>
</xsl:template>
+
+ <xsl:template match="messages">
+ <h2>Messages</h2>
+ <ul>
+ <xsl:for-each select="message">
+ <li><font size="-1">
+ <xsl:value-of select="."/>
+ </font>
+ </li>
+ </xsl:for-each>
+ </ul>
+ </xsl:template>
</xsl:stylesheet>