diff options
Diffstat (limited to 'templates/vimeo.com/groups.xsl')
-rw-r--r-- | templates/vimeo.com/groups.xsl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/vimeo.com/groups.xsl b/templates/vimeo.com/groups.xsl new file mode 100644 index 0000000..8c955da --- /dev/null +++ b/templates/vimeo.com/groups.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 Groups</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/group/<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/groups.xsl?srcurl=<xsl:value-of select="./@href"/></ref> + </link> + </xsl:for-each> + +</wvmenu> +</xsl:template> + +</xsl:stylesheet> |