<xsl:apply-templates select="interesting"/>
</xsl:if>
+
+ <xsl:apply-templates select="messages"/>
</xsl:template>
<xsl:template name="programTable">
<xsl:text>Successfully recorded programs </xsl:text>
<xsl:value-of select="$newline"/>
<xsl:value-of select="$newline"/>
+ <xsl:call-template name="programTable"/>
</xsl:when>
<xsl:when test="@result = 'DUPLICATE'">
<xsl:text>Already recorded programs</xsl:text>
<xsl:value-of select="$newline"/>
<xsl:value-of select="$newline"/>
+ <xsl:call-template name="programTable"/>
</xsl:when>
<xsl:when test="@result = 'CONFLICT'">
<xsl:text>Conflicts with other recorded programs</xsl:text>
<xsl:value-of select="$newline"/>
<xsl:value-of select="$newline"/>
+ <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:value-of select="$newline"/>
<xsl:value-of select="$newline"/>
+ <xsl:call-template name="programTable"/>
</xsl:when>
</xsl:choose>
- <xsl:call-template name="programTable"/>
-
</xsl:template>
<xsl:template name="addProgramInfo">
<xsl:call-template name="programTable"/>
</xsl:template>
+ <xsl:template match="messages">
+ <xsl:text>Messages</xsl:text>
+ <xsl:value-of select="$newline"/>
+ <xsl:value-of select="$newline"/>
+ <xsl:for-each select="message">
+ <xsl:text>* </xsl:text>
+ <xsl:value-of select="."/>
+ <xsl:value-of select="$newline"/>
+ </xsl:for-each>
+ </xsl:template>
+
</xsl:stylesheet>