1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
5<xsl:template match="/">
6<html>
7    <body>
8        <h2>Master Lineup for <xsl:value-of select="xmltv-lineups/xmltv-lineup/display-name"/></h2>
9            <table border="1">
10                <tr bgcolor="#9acd32">
11                    <th>Preset</th>
12                    <th>Icon</th>
13                    <th>Name</th>
14                </tr>
15                <xsl:for-each select="xmltv-lineups/xmltv-lineup/lineup-entry">
16                <tr>
17                    <td><xsl:value-of select="preset"/></td>
18                    <xsl:choose>
19                        <xsl:when test="station/logo">
20                                <td><img src="{station/logo/@url}" width="66" height="50"/></td>
21                        </xsl:when>
22                        <xsl:otherwise>
23                            <td></td>
24                        </xsl:otherwise>
25                    </xsl:choose>
26                    <xsl:choose>
27                        <xsl:when test="station[@rfc2838]">
28                            <td bgcolor="lime"><xsl:value-of select="station/name"/></td>
29                        </xsl:when>
30                        <xsl:otherwise>
31                            <td bgcolor="red"><xsl:value-of select="station/name"/></td>
32                        </xsl:otherwise>
33                    </xsl:choose>
34                </tr>
35                </xsl:for-each>
36            </table>
37    </body>
38</html>
39</xsl:template>
40
41</xsl:stylesheet>
42