summaryrefslogtreecommitdiff
path: root/templates/areena.yle.fi/common.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/areena.yle.fi/common.xsl')
-rw-r--r--templates/areena.yle.fi/common.xsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/areena.yle.fi/common.xsl b/templates/areena.yle.fi/common.xsl
new file mode 100644
index 0000000..5a5e88f
--- /dev/null
+++ b/templates/areena.yle.fi/common.xsl
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:template name="type_to_path">
+ <xsl:param name="type"/>
+ <xsl:choose>
+ <xsl:when test="$type = 'audio'">radio</xsl:when>
+ <xsl:otherwise>tv</xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+</xsl:stylesheet>