summaryrefslogtreecommitdiff
path: root/templates/www.vimeo.com/videopage.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/www.vimeo.com/videopage.xsl')
-rw-r--r--templates/www.vimeo.com/videopage.xsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/www.vimeo.com/videopage.xsl b/templates/www.vimeo.com/videopage.xsl
new file mode 100644
index 0000000..39cc3f3
--- /dev/null
+++ b/templates/www.vimeo.com/videopage.xsl
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:import href="../vimeo.com/video.xsl"/>
+
+<xsl:param name="docurl"/>
+
+<xsl:template match="/">
+ <xsl:variable name="videoid">
+ <xsl:value-of select="substring-after($docurl, 'http://www.vimeo.com/')"/>
+ </xsl:variable>
+
+ <xsl:if test="$videoid">
+ <xsl:apply-templates select="document(concat('http://www.vimeo.com/moogaloop/load/clip:', $videoid))" mode="included"/>
+ </xsl:if>
+</xsl:template>
+
+</xsl:stylesheet>