diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2010-10-24 21:05:47 +0300 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2010-10-24 21:05:47 +0300 |
commit | 4770a7e7d1a06fcea280382c546ae38cf4fd084e (patch) | |
tree | 9fd5b235a907edf4c76ceaf769d0cdbe501399c6 /templates/www.metacafe.com/channellist.xsl | |
parent | 439024953d1abe71fd5adce26fac4f17c1aa9f96 (diff) | |
download | vdr-plugin-webvideo-4770a7e7d1a06fcea280382c546ae38cf4fd084e.tar.gz vdr-plugin-webvideo-4770a7e7d1a06fcea280382c546ae38cf4fd084e.tar.bz2 |
rename template directories and add videopage.xsl to each template
Diffstat (limited to 'templates/www.metacafe.com/channellist.xsl')
-rw-r--r-- | templates/www.metacafe.com/channellist.xsl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/www.metacafe.com/channellist.xsl b/templates/www.metacafe.com/channellist.xsl new file mode 100644 index 0000000..b363c1a --- /dev/null +++ b/templates/www.metacafe.com/channellist.xsl @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<xsl:stylesheet version="1.0" +xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +xmlns:str="http://exslt.org/strings"> + +<xsl:template match="item"> + <link> + <label><xsl:value-of select="title" /> (<xsl:value-of select="videos"/> videos, avg. rank: <xsl:value-of select="avg_rank"/>)</label> + <ref>wvt:///www.metacafe.com/navigation.xsl?srcurl=/api/users/<xsl:value-of select="str:encode-uri(translate(title, ' ', '+'), true())"/>/channel?time=all_time</ref> + </link> +</xsl:template> + +<xsl:template match="/"> +<wvmenu> + <title><xsl:value-of select="/rss/channel/title"/></title> + + <xsl:apply-templates select="/rss/channel/item"/> +</wvmenu> +</xsl:template> + +</xsl:stylesheet> |