1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns="http://www.w3.org/1999/xhtml">
5 <xsl:template match="ListOfItems">
8 <xsl:for-each select="Item[ItemType='Previous']">
11 <xsl:attribute name="href">
12 <xsl:value-of select="UrlPrevious"/>
14 <xsl:text>< back</xsl:text>
19 <xsl:if test="Item[ItemType='Message']">
21 <xsl:for-each select="Item[ItemType='Message']">
23 <xsl:value-of select="Message"/>
28 <pre style="border: 1px solid black">
30 <xsl:for-each select="Item">
31 <xsl:if test="ItemType='Display'">
32 <xsl:text>[d] </xsl:text>
33 <xsl:value-of select="Display"/><xsl:text>
37 <xsl:if test="ItemType='Dir'">
38 <xsl:text>[D] </xsl:text>
40 <xsl:attribute name="href">
41 <xsl:value-of select="UrlDir"/>
43 <xsl:value-of select="Title"/>
49 <xsl:if test="ItemType='ShowOnDemand'">
50 <xsl:text>[S] </xsl:text>
52 <xsl:attribute name="href">
53 <xsl:value-of select="ShowOnDemandURL"/>
55 <xsl:value-of select="ShowOnDemandName"/>
61 <xsl:if test="ItemType='ShowEpisode'">
62 <xsl:text>[E] </xsl:text>
64 <xsl:attribute name="href">
65 <xsl:value-of select="ShowEpisodeURL"/>
67 <xsl:value-of select="ShowEpisodeName"/>
76 <xsl:if test="Item[ItemType='ShowEpisode']">
77 <h2>Show episodes</h2>
78 <xsl:for-each select="Item[ItemType='ShowEpisode']">
81 <xsl:attribute name="href">
82 <xsl:value-of select="ShowEpisodeURL"/>
84 <xsl:value-of select="ShowEpisodeName"/>
88 <xsl:value-of select="ShowDesc"/>
89 (<xsl:value-of select="ShowMime"/>)
94 <xsl:if test="Item[ItemType='Station']">
95 <h2>Internet radio stations</h2>
96 <xsl:for-each select="Item[ItemType='Station']">
98 #<xsl:value-of select="StationId"/>:
100 <xsl:attribute name="href">
101 <xsl:value-of select="StationUrl"/>
103 <xsl:value-of select="StationName"/>
107 <xsl:value-of select="StationDesc"/>
108 (<xsl:value-of select="ShowMime"/>)