diff options
Diffstat (limited to 'templates/yleareena/livestream.xsl')
-rw-r--r-- | templates/yleareena/livestream.xsl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/yleareena/livestream.xsl b/templates/yleareena/livestream.xsl new file mode 100644 index 0000000..b6d7ee2 --- /dev/null +++ b/templates/yleareena/livestream.xsl @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<xsl:param name="stream"></xsl:param> + +<xsl:template match="/"> + <mediaurl> + <title>livestream-<xsl:value-of select="$stream"/></title> + <xsl:choose> + <xsl:when test="$stream"> + <url>wvt:///bin/yle-dl?contenttype=video/x-flv&arg=http%3A//areena.yle.fi/player/index.php%3Fstream%3D<xsl:value-of select="$stream"/>%26language%3Dfi</url> + </xsl:when> + <xsl:otherwise> + <url/> + </xsl:otherwise> + </xsl:choose> +</mediaurl> + +</xsl:template> + +</xsl:stylesheet> |