summaryrefslogtreecommitdiff
path: root/templates/metacafe/channellist.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/metacafe/channellist.xsl')
-rw-r--r--templates/metacafe/channellist.xsl22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/metacafe/channellist.xsl b/templates/metacafe/channellist.xsl
new file mode 100644
index 0000000..2bb74ec
--- /dev/null
+++ b/templates/metacafe/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:///metacafe/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>