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="NoCache">
20 <p>Caching disabled by <tt>NoCache</tt></p>
23 <xsl:if test="Item[ItemType='Message']">
25 <xsl:for-each select="Item[ItemType='Message']">
27 <xsl:value-of select="Message"/>
32 <pre style="border: 1px solid black">
34 <xsl:for-each select="Item">
35 <xsl:if test="ItemType='Display'">
36 <xsl:text>[d] </xsl:text>
37 <xsl:value-of select="Display"/><xsl:text>
41 <xsl:if test="ItemType='Dir'">
42 <xsl:text>[D] </xsl:text>
44 <xsl:attribute name="href">
45 <xsl:value-of select="UrlDir"/>
47 <xsl:value-of select="Title"/>
53 <xsl:if test="ItemType='ShowOnDemand'">
54 <xsl:text>[S] </xsl:text>
56 <xsl:attribute name="href">
57 <xsl:value-of select="ShowOnDemandURL"/>
59 <xsl:value-of select="ShowOnDemandName"/>
65 <xsl:if test="ItemType='ShowEpisode'">
66 <xsl:text>[E] </xsl:text>
68 <xsl:attribute name="href">
69 <xsl:value-of select="ShowEpisodeURL"/>
71 <xsl:value-of select="ShowEpisodeName"/>
80 <xsl:if test="Item[ItemType='ShowEpisode']">
81 <h2>Show episodes</h2>
82 <xsl:for-each select="Item[ItemType='ShowEpisode']">
85 <xsl:attribute name="href">
86 <xsl:value-of select="ShowEpisodeURL"/>
88 <xsl:value-of select="ShowEpisodeName"/>
92 <xsl:value-of select="ShowDesc"/>
93 (<xsl:value-of select="ShowMime"/>)
98 <xsl:if test="Item[ItemType='Station']">
99 <h2>Internet radio stations</h2>
100 <xsl:for-each select="Item[ItemType='Station']">
102 #<xsl:value-of select="StationId"/>:
104 <xsl:attribute name="href">
105 <xsl:value-of select="StationUrl"/>
107 <xsl:value-of select="StationName"/>
111 <xsl:value-of select="StationDesc"/>
112 (<xsl:value-of select="ShowMime"/>)