blob: ae3c0d802ef06c6597a47d2d73e597e64a7fae95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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/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/channels.xsl?srcurl=<xsl:value-of select="./@href"/></ref>
</link>
</xsl:for-each>
</wvmenu>
</xsl:template>
</xsl:stylesheet>
|