(no commit message)
[utils] / crawler / kiss / src / reportToHtml.xsl
index 521b85ce81b359a8acdd26abf50d47f44a0f8412..23bc1730e93988f3d2808dac302acc773fa3f7d8 100644 (file)
                 <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">
@@ -33,6 +35,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:call-template name="programTable"/>
-        </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>