(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Mon, 27 Mar 2006 14:08:47 +0000 (14:08 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Mon, 27 Mar 2006 14:08:47 +0000 (14:08 +0000)
crawler/kiss/src/reportToHtml.xsl
crawler/kiss/src/reportToText.xsl

index fd117d1e6ca726c16b94c3f4254faad2519f672c..44765a3202b37d00ba8f01aa152da1b034b324fe 100644 (file)
@@ -22,6 +22,7 @@
     </xsl:template>
 
     <xsl:template name="programTable">
+        <p>
         <table align="left" cellpadding="5">
             <!-- 
             <tr align="left">
@@ -33,6 +34,7 @@
             <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">
index b50728e651c14afc570c5e88cc3fea3e2cc39ef1..f619dd1fd4612d797f9afe17de28b9bc55eac3a3 100644 (file)
         <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">