(no commit message)
[utils] / crawler / kiss / src / reportToText.xsl
index b50728e651c14afc570c5e88cc3fea3e2cc39ef1..741a678ddd231b8dc6781465591dc0cde1d94c4a 100644 (file)
@@ -16,6 +16,8 @@
       
       <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:if test="not(@result='OLDSHOW')">
-        <xsl:call-template name="programTable"/>
-    </xsl:if>
-    
   </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>