1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4 <xsl:template match="report">
7 <title>KiSS crawler report</title>
10 <h1>KiSS crawler report</h1>
11 <xsl:apply-templates select="recorded"/>
12 <xsl:if test="count(interesting) > 0">
13 <h2>Possibly interesting programs</h2>
14 <xsl:apply-templates select="interesting"/>
16 <xsl:if test="count(//program) = 0">
17 <xsl:text>No suitable programs found </xsl:text>
24 <xsl:template name="programTable">
25 <table align="left" cellpadding="5">
28 <th align="left">Time</th>
29 <th align="left">Channel</th>
30 <th align="left">Program</th>
33 <xsl:apply-templates select="program"/>
38 <xsl:template match="recorded">
41 <xsl:when test="@result = 'OK'">
42 <xsl:text>Successfully recorded programs </xsl:text>
44 <xsl:when test="@result = 'DUPLICATE'">
45 <xsl:text>Already recorded programs</xsl:text>
47 <xsl:when test="@result = 'CONFLICT'">
48 <xsl:text>Conflicts with other recorded program</xsl:text>
50 <xsl:when test="@result='ERROR'">
51 <xsl:text>Programs that could not be recorded for
52 technical reasons.</xsl:text>
57 <xsl:call-template name="programTable"/>
61 <xsl:template name="addProgramInfo">
63 <td><xsl:value-of select="interval/begin"/> - <xsl:value-of select="interval/end"/>: <strong>
64 <xsl:value-of select="name"/>
65 </strong> (<xsl:value-of select="channel"/>/<xsl:value-of select="keywords"/>)</td>
72 <xsl:value-of select="description"/>
81 <xsl:template match="program">
82 <xsl:call-template name="addProgramInfo"/>
85 <xsl:template match="interesting">
86 <xsl:call-template name="programTable"/>
87 <xsl:apply-templates select="category"/>
90 <xsl:template match="category">
91 <h3>Category: <xsl:value-of select="@name"/></h3>
92 <xsl:call-template name="programTable"/>