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">
26 <table align="left" cellpadding="5">
29 <th align="left">Time</th>
30 <th align="left">Channel</th>
31 <th align="left">Program</th>
34 <xsl:apply-templates select="program"/>
40 <xsl:template match="recorded">
43 <xsl:when test="@result = 'OK'">
44 <xsl:text>Successfully recorded programs </xsl:text>
45 <xsl:call-template name="programTable"/>
47 <xsl:when test="@result = 'DUPLICATE'">
48 <xsl:text>Already recorded programs</xsl:text>
49 <xsl:call-template name="programTable"/>
51 <xsl:when test="@result = 'CONFLICT'">
52 <xsl:text>Conflicts with other recorded programs</xsl:text>
53 <xsl:call-template name="programTable"/>
55 <xsl:when test="@result='ERROR'">
56 <xsl:text>Programs that could not be recorded for
57 technical reasons.</xsl:text>
58 <xsl:call-template name="programTable"/>
64 <xsl:template name="addProgramInfo">
66 <td><xsl:value-of select="interval/begin"/> - <xsl:value-of select="interval/end"/>: <strong>
67 <xsl:value-of select="name"/>
68 </strong> (<xsl:value-of select="channel"/>/<xsl:value-of select="keywords"/>)</td>
75 <xsl:value-of select="description"/>
84 <xsl:template match="program">
85 <xsl:call-template name="addProgramInfo"/>
88 <xsl:template match="interesting">
89 <xsl:call-template name="programTable"/>
90 <xsl:apply-templates select="category"/>
93 <xsl:template match="category">
94 <h3>Category: <xsl:value-of select="@name"/></h3>
95 <xsl:call-template name="programTable"/>