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:include href="org/wamblee/xml/utilities.xsl"/>
6 <xsl:output method="xml"/>
7 <xsl:template match="report">
10 <title>KiSS crawler report</title>
13 <h1>KiSS crawler report</h1>
14 <xsl:apply-templates select="recorded"/>
15 <xsl:if test="count(interesting) > 0">
16 <h2>Possibly interesting programs</h2>
17 <xsl:apply-templates select="interesting"/>
19 <xsl:if test="count(//program) = 0">
20 <xsl:text>No suitable programs found </xsl:text>
27 <xsl:template name="programTable">
29 <table align="left" cellpadding="5">
32 <th align="left">Time</th>
33 <th align="left">Channel</th>
34 <th align="left">Program</th>
37 <xsl:apply-templates select="program"/>
43 <xsl:template match="recorded">
46 <xsl:when test="@result = 'OK'">
47 <xsl:text>Successfully recorded programs </xsl:text>
48 <xsl:call-template name="programTable"/>
50 <xsl:when test="@result = 'DUPLICATE'">
51 <xsl:text>Already recorded programs</xsl:text>
52 <xsl:call-template name="programTable"/>
54 <xsl:when test="@result = 'CONFLICT'">
55 <xsl:text>Conflicts with other recorded programs</xsl:text>
56 <xsl:call-template name="programTable"/>
58 <xsl:when test="@result='ERROR'">
59 <xsl:text>Programs that could not be recorded for
60 technical reasons.</xsl:text>
61 <xsl:call-template name="programTable"/>
67 <xsl:template name="addProgramInfo">
69 <td><xsl:value-of select="interval/begin"/> - <xsl:value-of select="interval/end"/>: <strong>
70 <xsl:value-of select="name"/>
71 </strong> (<xsl:value-of select="channel"/>/<xsl:value-of select="keywords"/>)</td>
78 <xsl:value-of select="description"/>
87 <xsl:template match="program">
88 <xsl:call-template name="addProgramInfo"/>
91 <xsl:template match="interesting">
92 <xsl:call-template name="programTable"/>
93 <xsl:apply-templates select="category"/>
96 <xsl:template match="category">
97 <h3>Category: <xsl:value-of select="@name"/></h3>
98 <xsl:call-template name="programTable"/>