summaryrefslogtreecommitdiff
path: root/templates/vimeo.com/channels.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vimeo.com/channels.xsl')
-rw-r--r--templates/vimeo.com/channels.xsl33
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/vimeo.com/channels.xsl b/templates/vimeo.com/channels.xsl
new file mode 100644
index 0000000..c8b3e18
--- /dev/null
+++ b/templates/vimeo.com/channels.xsl
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:str="http://exslt.org/strings">
+
+<xsl:template match="/">
+<wvmenu>
+ <title>Vimeo Channels</title>
+
+ <xsl:for-each select="//div[@class='title']/a">
+ <link>
+ <label><xsl:value-of select="."/></label>
+ <ref>wvt:///vimeo.com/navigation.xsl?srcurl=http://vimeo.com/api/v2/channel/<xsl:value-of select="str:split(@href, '/')[last()]"/>/videos.xml</ref>
+ </link>
+ </xsl:for-each>
+
+ <xsl:for-each select="//div[@class='pagination']/ul/li[@class='arrow']/a">
+ <link>
+ <xsl:if test="img/@alt = 'previous'">
+ <label>Previous</label>
+ </xsl:if>
+ <xsl:if test="img/@alt = 'next'">
+ <label>Next</label>
+ </xsl:if>
+ <ref>wvt:///vimeo.com/channels.xsl?srcurl=<xsl:value-of select="./@href"/></ref>
+ </link>
+ </xsl:for-each>
+
+</wvmenu>
+</xsl:template>
+
+</xsl:stylesheet>