summaryrefslogtreecommitdiff
path: root/templates/www.vimeo.com/videopage.xsl
blob: 39cc3f357cb8d38aa8bcee177c7c1c2e77a46793 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>