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='ERROR'">
48 <xsl:text>Programs that could not be recorded for
49 technical reasons.</xsl:text>
54 <xsl:call-template name="programTable"/>
58 <xsl:template name="addProgramInfo">
60 <td><xsl:value-of select="interval/begin"/> - <xsl:value-of select="interval/end"/>: <strong>
61 <xsl:value-of select="name"/>
62 </strong> (<xsl:value-of select="channel"/>/<xsl:value-of select="keywords"/>)</td>
69 <xsl:value-of select="description"/>
78 <xsl:template match="program">
79 <xsl:call-template name="addProgramInfo"/>
82 <xsl:template match="interesting">
83 <xsl:call-template name="programTable"/>
84 <xsl:apply-templates select="category"/>
87 <xsl:template match="category">
88 <h3>Category: <xsl:value-of select="@name"/></h3>
89 <xsl:call-template name="programTable"/>